Created
October 7, 2014 12:11
-
-
Save neotheicebird/c4c5dbed8022c2b438a8 to your computer and use it in GitHub Desktop.
I have both python2.7 and python3.2 installed in Ubuntu 12.04. The symbolic link python links to python2.7. When I type: sudo pip install package-name It will default install python2 version of package-name. Some package supports both python2 and python3. How to install python3 version of package-name via pip?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virtualenv -p /usr/bin/python3 py3env | |
source py3env/bin/activate | |
pip install package-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: http://stackoverflow.com/questions/10763440/how-to-install-python3-version-of-package-via-pip