[pip]Pip安裝依賴于six的庫失敗的解決方法

安裝一些庫的時(shí)候會報(bào)錯(cuò)如下:

Installing collected packages: six
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
...

參考外網(wǎng)大神的解釋
把安裝的命令改成

sudo pip install six --upgrade --ignore-installed six

即可解決(libName 庫名)
Mac自己安裝了python3的可以用pip3

原因是Apple預(yù)安裝的這個(gè)six庫出于安全原因被設(shè)置為sudo也不可以執(zhí)行操作,所以需要依賴于高版本的庫就需要更新six,但是沒有six的權(quán)限,所以就會報(bào)錯(cuò)。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容