安裝python2.7
sudo apt install python2.7
安裝pip和pip3
sudo apt install python-pip
sudo apt install python3-pip
檢視python版本和pip版本
python -V
pip -V
檢視python路徑和pip路徑
whereis python
whereis pip
設定清華源
mkdir .pip && cd .pip && touch pip.conf && gedit pip.conf
pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
更新pip到對新版本
python -m pip install --upgrade pip