Skip to content

Instantly share code, notes, and snippets.

@neotheicebird
Created October 7, 2014 12:11
Show Gist options
  • Save neotheicebird/c4c5dbed8022c2b438a8 to your computer and use it in GitHub Desktop.
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?
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