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

windows10安裝python依賴報(bào)錯(cuò)can‘t?create?or?remove?files?in?install?directory問題

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

windows10安裝python依賴報(bào)錯(cuò)can‘t create or remove files in install directory

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

報(bào)如下錯(cuò)誤: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/
    ......

報(bào)錯(cuò)

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

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

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

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

卸載

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

安裝

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

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

安裝python成功

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

參考:win10安裝python的全過程

總結(jié)

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

相關(guān)文章

最新評(píng)論

常宁市| 临猗县| 淄博市| 新乐市| 镇坪县| 澜沧| 琼海市| 佛山市| 定陶县| 柘城县| 定州市| 昌宁县| 襄樊市| 专栏| 柳江县| 商城县| 达孜县| 安远县| 中西区| 舞阳县| 万山特区| 宿迁市| 右玉县| 邛崃市| 迁西县| 富裕县| 凌云县| 绥江县| 扎囊县| 通州市| 安福县| 和政县| 平山县| 成安县| 和顺县| 凤城市| 珲春市| 石棉县| 炎陵县| 璧山县| 崇州市|