Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use pip in bitbucket pipelines?

Robin Beier March 6, 2018

Hi,

i want to use pip in my bitbucket pipeline to install fabric and deploy my php application.  According to this article it is possible to cache pip as a dependency. Can you tell me what I'm doing wrong?

Here is my pipelines.yml file:

pipelines:
default:
- step:
name: Deploy to production
deployment: production
caches:
- pip
script:
- pip -v


Following error gets thrown on the deploy: 

+ pip -v
bash: pip: command not found


Thank you very much for your help!

1 answer

1 accepted

1 vote
Answer accepted
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2018

What base image are you using? You may need to specify one that already has pip (and whatever other Python utilities you might need) installed.

Robin Beier March 6, 2018

i have no image specified, i think it's the default-image from bitbucket.

Could you tell me how to find such an image? Maybe it's possible to create an own image?

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events