I have two versions of python installed on my machine (Ubuntu 14.xx LTE) as well as two versions of pip
(one for python 2 and one for python 3). When I run pip --version
on the command line I get the following output: pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
. I looked into this directory and it has many other things in it. However I couldn't find pip.py
in it. How do I run pip
for python 3? Any help is appreciated.
To use another version of pip for python on ubuntu, you can use the python major version after pip. For Example:
pip --version
will return the default version of pip
pip2 --version
will use the Python 2 version of pip, and
pip3 --version
will use Python 3.
Hope this helped!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With