When setting up the Python execution environment on Ubuntu, many people will put pip at the same time. And if you ask Google, you will get the answer that you can install with apt. However, if my memory is correct, if I put it in this way, ** there is a possibility that problems such as the update of pip itself not working properly will occur later **. Therefore, I will leave a concise memorandum of how to prevent problems.
Python2 series. A child who doesn't need it anymore ...
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python2 get-pip.py
Update pip itself
pip install -U pip
This is probably the one I use often.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
Update of pip3 itself
pip3 install -U pip
Recommended Posts