[LINUX] If you try to install Python2 pip after installing Python3 pip and it is rejected

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

If you try to install Python2 pip after installing Python3 pip and it is rejected
What to do if you can't install pyaudio with pip #Python
[TensorFlow] If you want to run TensorBoard, install it with pip
If pip stops due to SSL, it is better to re-insert python itself
What to do if you can't pip install mysqlclient
What is pip and how do you use it?
How to install and use pyenv, what to do if you can't switch python versions
After all it is wrong to cat with python subprocess.
Install Python 2.7.9 and Python 3.4.x with pip.
Don't write Python if you want to speed it up with Python
How to install OpenCV on Cloud9 and run it in Python
I want to know if you install Python on Mac ・ Iroha
What to do if you get a UnicodeDecodeError with pip install
How to deal with errors when installing Python and pip with choco
Code Python to check and graph if it follows Benford's law
[Python] What is pip? Explain the command list and how to use it with actual examples
Is it deprecated to use pip directly?
How to install and use pandas_datareader [Python]
Install ROS and ROS module for Roomba on RaspberryPi3 and try to run it
Sh and py run after installing Python3
To you who are addicted to installing pip and are sad, maybe El Capitan
If you can't import even though it is already installed by pip
What to do if you can't install with pip in babun environment
Install python on xserver to use pip
Day 64 pip install tensorflow and 2.0 is here.
Read CSV file with Python and convert it to DataFrame as it is
How to use is and == in Python
If you try to start the jupyter notebook installed with pip and it says "command not found", it seems that you can go through the PATH.
If you use Pandas' Plot function in Python, it is really seamless from data processing to graph creation
Workaround if you get an error when trying to install PySide with pip
How to build an environment when you want to use python2.7 after installing Anaconda3
python Binary search It is surprisingly easy to implement bisect.bisect_left and bisect.bisect_right from 0
What to do if scrapy doesn't work after installing scrapy with pip on mac
What to do if you get an error when installing python with pyenv
Is Parallel Programming Hard, And, If So, What Can You Do About It?
Notes on installing Python3 and using pip on Windows7
Note: What to do if pip install fails
What are you comparing with Python is and ==?
How to install Cascade detector and how to use it
Install ZIP version Python and pip on Windows 10
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if you get an OpenSSL error when installing Python 2 with pyenv
[Introduction to Python] What is the recommended way to install pip, a package management system?
Make it easy to install the ROS2 development environment with pip install on Python venv
Until you can install blender and run it with python for the time being
Understand Python yield If you put yield in a function, it will change to a generator
It is easy to execute SQL with Python and output the result in Excel
What to do if you run python in IntelliJ and end with an error
What to do if pip install fails in Xcode 5.1
Try to operate DB with Python and visualize with d3
If you get hooked on pip install dlib on OSX
mac OS X 10.15.x pyenv Python If you can't install
What to do if pip install fails to install dependent libraries
Install tweepy with pip and use it for API 1.1
It is blocked by Proxy, a connection error occurs in Python or pip, and it is retried.
What to do if you get Swagger-codegen in python and Import Error: No module named
If you want to put an argument in the closure function and execute it later
[Python] What is a tuple? Explains how to use without tuples and how to use it with examples.
If you can't use Beautiful Soup 4 after updating to Python 3.5. ImportError: No module named bs4
[Python] pip and wheel
How to install pip