I have both
python3.2 installed in
The symbolic link
python links to
When I type:
sudo pip install package-name
It will default install
python2 version of
Some package supports both
How to install
python3 version of
Ubuntu 12.10+ and Fedora 13+ have a package called
python3-pip which will install
pip3 for newer versions) without needing this jumping through hoops.
I came across this and fixed this without needing the likes of
wget or virtualenvs (assuming Ubuntu 12.04):
- Install package
sudo aptitude install python3-setuptools, this will give you the command
- Install pip using Python 3's setuptools: run
sudo easy_install3 pip, this will give you the command
pip-3.2 like kev's solution.
- Install your PyPI packages: run
sudo pip-3.2 install <package> (installing python packages into your base system requires root, of course).