Install pip / pip3 on Ubuntu

Introduction

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.

Introduction of pip

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

Introduction of pip3

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

Install pip / pip3 on Ubuntu
Install TensorFlow on Ubuntu
Install pip on Mavericks
Install PySide2 on Ubuntu
Install Theano on Ubuntu 12.04
I can't install Dask with pip on Ubuntu
Install GoLand IDE on Ubuntu
Install OpenCV on Ubuntu + python
wsl Install PostgreSQL on Ubuntu 18.04
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Caffe on Ubuntu 14.04 (GPU)
I got a UnicodeDecodeError when pip install on ubuntu
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Caffe on Ubuntu 14.04 (CPU mode)
Pip install --ugrade pip fails on Windows
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install Python on Windows + pip + virtualenv
Install pip on CentOS7. Also iPython.
Install fabric on Ubuntu and try
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
How to install Go on Ubuntu
ROS study # 1 Install ros-noetic on ubuntu 20.04
Install easy_install and pip on windows
sudo pip install
Shebang on Ubuntu 20.04
Install python3 and scientific calculation library on Ubuntu (virtualenv + pip)
Steps to install Python environment on Ubuntu
scipy stumbles with pip install on python 2.7.8
Install Pleasant on Ubuntu 20.04 (.NetCore3.1 / PostgreSQL version)
Install ubuntu on 32bit UEFI Ultra Notebook
Install Caffe running 3D-CNN on clean Ubuntu 14.04
Install Puppet Master and Client on Ubuntu 16.04
How to install php7.4 on Linux (Ubuntu)
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install mecab on Marvericks
Install Tensorflow on Mac
Install Faiss on CentOS 7
Install pyenv on mac
Install pip, pyenv, BeautifulSoup4
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
How to install pip
Install python package in personal environment on Ubuntu
Install docker on Fedora31
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
Install numba on CentOS 7.2
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install Python3.4 on CentOS 6.6
Error with pip install
Install Docker (Ubuntu 18.04 LTS)