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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,699
Community Members
 
Community Events
184
Community Groups

There's no pip on atlassian/default-image:4

Hello!

I couldn't find pip on the default image.

How could I install it without using apt and cache the installed pip?

 

1 answer

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 23, 2023

Hi @남성식 

For your question, since you don't want to use apt, you can either download python source code and build it locally or set up a similar ubunto 22 server with the required python modules and copy the files from there.

I strongly recommend against both options.    

The recommend way would be to use a docker image which contains all your dependencies. You can either use it as the image which runs your pipeline step, or as the artifact of your build, and then pass it to next step as part of your artifacts or as part of your cache.

Have a look at:

  1. https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/  
  2. https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/
  3. https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/

I agree with you totally, but I was curious, why the default image contains only python except pip. I thought there would be a special way to get pip. But it was not :-)

Would you please tell me why the default image doesn't contain pip?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events