python pip 小記

使用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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章