Ubuntu 18.04 is installed by default with python3.6
[ sudo apt install python2.7
](sudo apt install python2.7
)undefined
[ Successful installation:]( Successful installation:) undefined
[ 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
[ 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