0

I am using ubundu and have python 2X and 3X installed, default version is python 2X. I want to install a package for python3X. When i tried doing it with pip the module got installed to python 2X

1
  • there maybe a pip3 command, use it instead. Commented Apr 2, 2016 at 14:22

2 Answers 2

2

Use pip3:

sudo pip3 install 'module'

To install pip3:

sudo apt-get install python3-pip
Sign up to request clarification or add additional context in comments.

Comments

1

e.g,:

python3.5 -m pip install mypackagename

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.