最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

windows10安裝python依賴報錯can‘t?create?or?remove?files?in?install?directory問題

 更新時間:2023年09月18日 10:37:13   作者:love666666shen  
這篇文章主要介紹了windows10安裝python依賴報錯can‘t?create?or?remove?files?in?install?directory問題及解決方案,具有很好的參考價值,希望對大家有所幫助

windows10安裝python依賴報錯can‘t create or remove files in install directory

執(zhí)行python setup.py安裝依賴時,

報如下錯誤:can’t create or remove files in install directory。

>> python setup.py install
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-19811.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/
    ......

報錯

無法在安裝目錄中創(chuàng)建或刪除文件,想到是沒有權(quán)限的問題,查問題都說使用管理員權(quán)限重新執(zhí)行上面命令即可。

但是使用管理員權(quán)限打開terminal,再次執(zhí)行python setup.py install這個命令,還是報上面的錯誤。

下面通過卸載Windows自帶的Python,然后重裝解決這個問題。

在左下角搜索 設(shè)置 -> 應(yīng)用,搜索python,然后點擊卸載。

卸載

卸載后,到https://www.python.org/downloads/windows/下載對應(yīng)系統(tǒng)的可執(zhí)行文件安裝器,我的是64位,這里選擇安裝64位的Windows可執(zhí)行文件安裝器。

安裝

選擇自定義安裝,這里放到d盤softs目錄下,選擇將python添加到PATH環(huán)境變量中。

安裝成功后,在terminal中運行python命令,如下對應(yīng)版本信息,即表明安裝成功。

安裝python成功

然后,再執(zhí)行python setup.py install命令,即可下載相關(guān)的依賴。

參考:win10安裝python的全過程

總結(jié)

以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論

金塔县| 辉县市| 临漳县| 东明县| 新绛县| 壶关县| 辛集市| 龙岩市| 宜章县| 闻喜县| 靖边县| 阿鲁科尔沁旗| 曲松县| 东港市| 湘乡市| 温泉县| 和田县| 沾化县| 安新县| 高碑店市| 科尔| 漯河市| 阿拉善右旗| 阿鲁科尔沁旗| 仪征市| 鸡西市| 双鸭山市| 乐都县| 巴塘县| 刚察县| 子洲县| 平利县| 荔浦县| 庄河市| 长兴县| 阿克| 巍山| 齐河县| 怀柔区| 西昌市| 七台河市|