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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't install python package using pip inside Bitbucket Pipelines

Hi, 

My question is simple, so obviously, I'm missing something fundamental. I wrote a short pipeline to test my python code. The first step is installing all the needed packages using pip. I found out that although pip shows a success message while installing a package, the package doesn't really install and the pipeline failed at the show line (line 2). I used "mock" package for this example but it happens for each package I use. 

 

Output:

for line 1:

+ pip install mock

Collecting mock Downloading https://files.pythonhosted.org/packages/cd/74/d72daf8dff5b6566db857cfd088907bb0355f5dd2914c4b3ef065c790735/mock-4.0.2-py3-none-any.whl

Installing collected packages: mock

Successfully installed mock-4.0.2

You are using pip version 19.0.3, however version 20.3b1 is available.You should consider upgrading via the 'pip install --upgrade pip' command.

 

for line 2:

+ pip show mock

WARNING: Package(s) not found: mock

 

My pipeline file:

image: python:3.7.2
pipelines:
default:
- step:
script:
- pip install mock # Line 1
- pip show mock # Line 2
- pip list

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

161 views 3 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you