使用sudo權限
sudo -H [ ]
python命令 爲符號軟連接,可指向python2或3,默認2.7 。使用python3可以改軟連接也可直接使用python3(也是軟連接)
pip 與 pip3 對應python2和3
pip list 顯示安裝的包
pip -V 顯示版本
更新pip
sudo -H pip install --upgrade pip
sudo -H pip3 install --upgrade pip
“It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall “類似問題:
Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解決:
sudo pip3 install six --upgrade --ignore-installed six