I am trying to install the Pillow module for python 3.3, but for that I need to install pip. Every time that I install pip it installs for python 2.7, any help?
|
While on more modern versions of Ubuntu you could just Therefore you need to follow the more old fashioned install route with
Now, there is every chance that this will clash with Python 2's It shouldn't overwrite it so as long as you know that, it might be acceptable. However it might be best to start investigating the happy world of Alternatively you could rename the easy-installed python3 version of pip:
Then you can confirm your existing pip is still python2.7 based:
|
|||||||||||||||||||||
|
|
You may also install it by |
|||||||||||||||||||||
|
|
If you work with several versions of python on the same machine, it might be useful to work with virtual environments. This allows you to work with as many instances of python you want, each with their own set of packages. This is very useful if you're working with several versions of python, and/or if your projects require different versions of the same package(s). To set this up:
This can be done with ANY pip, so also with the standard pip using python 2.7. Then, to make a virtual environment with python3 as the interpreter, do:
Then install any packages you might want using
To stop the virtual environment, simple type:
|
|||
|
|
|
After installing python 3.3 using a PPA for Ubuntu 12.04, I installed
This avoids polluting the site's installation of |
|||
|
|
|
To add to dmeu's answer, you may have to update your
To clarify on what Long-term support means, it does not necessarily mean that they are keeping What LTS means, is that they are keeping If the apt-get route still doesn't work, you may also try downloading a .deb package of python3-pip, and using dpkg, a.k.a. the debian package manager, to install it
Hope this helps. |
|||
|
|
|
by now my favorite option is to install Any package can be installed by If you need python2, you can create a virtual environment:
See details here: https://stackoverflow.com/a/24415581/551694 |
||||
|
|
sudo apt-get install python3-pip, however I get it can't find it. Did you have that problem too? Did you fix it? – Charlie Parker Dec 16 '16 at 3:26