Python3 can use pip and pip3, but if you install pip3 after installing pip in Python2 It may be overwritten.
$ sudo python get-pip.py
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
If you add --ignore-installed, you will be forced to enter.
$ sudo python get-pip.py --ignore-installed
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-9.0.1
$ pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ pip3 -V
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
Recommended Posts