ubuntu18.04 install python2

Ubuntu 18.04 is installed by default with python3.6

[ Install python2.7:](install python2.7:)

[ sudo apt install python2.7](sudo apt install python2.7)undefined

[ Successful installation:]( Successful installation:) undefined

[ Install pip and pip3](install pip and pip3)

[ Installation command:](Installation command:)[sudo apt install python-pip](sudo apt install python-pip)[sudo apt install python-pip3](sudo apt install python-pip3)undefined

[ After the installation is successful, we want to use the related python instructions, and the following situation appears: (pip similar)] (After the installation is successful, we want to use the related python instructions, and the following situation appears: (pip Similar)) undefined

[ Now check the storage path of the bin file of python2.7 python3.6 pip pip3] (Check the storage path of the bin file of python2.7 python3.6 pip pip3 now) undefined

[ Use alias to set alias, version coexistence and switch] (use alias to set alias, version coexistence and switch)

[ After stepping on the pit, the following code is not recommended] (after stepping on the pit, the following code is not recommended)

[ Operating instruction: gedit ~/.bashrc] (Operating instruction: gedit ~/.bashrc)

alias pip=/usr/bin/pip
alias pip3=/usr/bin/pip3
alias python=/usr/bin/python2.7
alias python3=/usr/bin/python3.6

[ After configuration is as follows:](After configuration is as follows:) undefined

Recommended Posts

ubuntu18.04 install python2
ubuntu12.04 install python3
ubuntu18.04 install python
Install python3.6 under Ubuntu 16.04
Install Python3 on Ubuntu 14.04
Install python in Ubuntu
Install Python3 on Ubuntu 16.04
Install Python3.7 on Ubuntu
Ubuntu install the latest Python 3.
Install Python 3.7 on Ubuntu 18.04 LTS
ubuntu18.04 compile and install python3.8
Centos6 install Python2.7.13
Ubuntu16 upgrade Python3
Centos7 install Python 3.6.
Relearn ubuntu --python3
ubuntu18.04 install docker
CentOS install Python 3.6
Ubuntu install guide
Centos7 install Python2.7
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
How to install Python 3.8 on Ubuntu 18.04
ubuntu install Jenkins
docker install ubuntu
ubuntu install elasticsearch
Install Python virtual environment on Ubuntu 18.04
Centos install Python3
Install TensorFlow (python2.7 version) on Ubuntu
ubuntu16.0.1 install pagoda
CentOS6.8 install python2.7
ubuntu 18.04 install teamviewer
ubuntu install sendmail
ubuntu16.04 upgrade python2
How to install Python2 on Ubuntu20.04 ubuntu/focal64
Use python3 to install third on ubuntu
Ubuntu18.04 switch Python version
Install apache+PHP under Ubuntu
install vscode on ubuntu18
Install node.js under Ubuntu
ubuntu install zsh terminal
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
ubuntu configuration python, Red
Install docker on Ubuntu
Ubuntu18.04 install opencv 3.2.0 solution
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Ubuntu16.04 switch python version
Python MySQLd under Ubuntu
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
ubuntu install harbor warehouse
[python] python2 and python3 under ubuntu
Install mysql on Ubuntu 14.04
Ubuntu16.04 install Mongodb tutorial
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu