国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

記一次pip下載包報錯ERROR: No matching distribution found for xxx時的解決方案

這篇具有很好參考價值的文章主要介紹了記一次pip下載包報錯ERROR: No matching distribution found for xxx時的解決方案。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

前言

當(dāng)我們使用python自帶的pip安裝一些包時,可能會報以下錯誤:
記一次pip下載包報錯ERROR: No matching distribution found for xxx時的解決方案
出現(xiàn)這種情況有三種可能:

第一種可能:

pip的版本過低,需要升級一下,可以執(zhí)行以下命令進行嘗試

 python -m pip install --upgrade pip

第二種可能:

考慮可能是網(wǎng)速的原因,這時可以采用國內(nèi)的鏡像源來加速

 pip install 包 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com
 
 ps :--trusted-host pypi.douban.com 這是為了獲得ssl證書的認證
	常見pip鏡像源(國內(nèi)源)
	清華:https://pypi.tuna.tsinghua.edu.cn/simple
	阿里云:http://mirrors.aliyun.com/pypi/simple/
	中國科技大學(xué) https://pypi.mirrors.ustc.edu.cn/simple/
	華中理工大學(xué):http://pypi.hustunique.com/
	山東理工大學(xué):http://pypi.sdutlinux.org/
	豆瓣:http://pypi.douban.com/simple/

第三種可能:

檢查下是否開啟代理或者VPN,將其關(guān)閉再使用國內(nèi)鏡像進行嘗試看看是否可以解決,我這邊就是代理開啟導(dǎo)致網(wǎng)絡(luò)太慢而報錯的。文章來源地址http://www.zghlxwxcb.cn/news/detail-511337.html

到了這里,關(guān)于記一次pip下載包報錯ERROR: No matching distribution found for xxx時的解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Python pip install 安裝包報錯ERROR: Could not find a version that satisfies the requirement XXX解決方法

    Python pip install 安裝包報錯ERROR: Could not find a version that satisfies the requirement XXX解決方法

    使用 pip 安裝 python 包時,經(jīng)常會出現(xiàn)如下錯誤: 本次在用pip命令(pip install pdf2word)安裝pdf2docx包的時候出錯 因為后來安裝好了,所以故意安裝一個錯誤的pdf2word,來整個圖 可能是國內(nèi)網(wǎng)絡(luò)不穩(wěn)定,直接導(dǎo)致報錯,而不是環(huán)境沖突。報錯信息看起來容易把人誤導(dǎo)到解決包環(huán)境

    2024年01月18日
    瀏覽(107)
  • python使用pip安裝包報錯的解決辦法(ERROR: Could not find a version that satisfies the requirement XXX)

    python使用pip安裝包報錯的解決辦法(ERROR: Could not find a version that satisfies the requirement XXX)

    目錄 解決方法一:更換下載源 解決方法二:使用源碼安裝 解決方法三:通過whl文件安裝 拓展:虛擬環(huán)境下通過源碼安裝第三方庫 使用pip命令安裝python包時可能會出現(xiàn)如下錯誤提示: ERROR: Could not find a version that satisfies the requirement XXX (from v ersions: none) ERROR: No matching distribu

    2024年01月19日
    瀏覽(118)
  • python報錯:ERROR: No matching distribution found for

    python報錯:ERROR: No matching distribution found for

    ? 使用pip安裝包時提示報錯如下: ERROR: Could not find a version that satisfies the requirement?package (from versions: none) ERROR: No matching distribution found for?package 大多數(shù)是網(wǎng)絡(luò)問題,替換使用國內(nèi)的鏡像來源加速即可。 打開cmd 輸入? 按回車執(zhí)行命令后,安裝成功。 例如: ?

    2024年02月15日
    瀏覽(17)
  • jenkins構(gòu)建時,報錯ERROR: No matching distribution found for pywin32==305

    最近用jenkin構(gòu)建了一個任務(wù),控制臺輸出,出現(xiàn)如下報錯信息: ERROR: Could not find a version that satisfies the requirement pywin32==305 (from versions: none) ERROR: No matching distribution found for pywin32==305 Build step \\\'Execute shell\\\' marked build as failure Finished: FAILURE ? 原因: requirement是需要導(dǎo)入的依賴包文件

    2023年04月27日
    瀏覽(26)
  • 解決報錯ERROR: No matching distribution found for torchvision==0.11.2+cu111

    解決報錯ERROR: No matching distribution found for torchvision==0.11.2+cu111

    目錄 一、猜測 二、驗證 三、解決方案 四、檢驗 該報錯是在按官網(wǎng)方法用指令: 安裝pytorch時出現(xiàn)的,以下是分析: 這個錯誤提示表明在指令提供的下載網(wǎng)址上沒有找到符合要求的torchvision軟件包版本,需要安裝符合要求的版本。問題可能出在指定的版本號(0.11.2+cu111),這

    2024年02月11日
    瀏覽(26)
  • 記一次Feign調(diào)用報錯feign.codec.DecodeException: Error while extracting response for type [java.util.List...

    ? ? ? ? 在今天工作時,臨時收到生產(chǎn)問題,檢查發(fā)現(xiàn)是在本服務(wù)Feign遠程調(diào)用其他服務(wù)時方法時發(fā)生的,具體報錯詳情,及原因和解決方法均記錄在下方。 ????????feign.codec.DecodeException: Error while extracting response for type [java.util.ListObject] and content type [application/json]; nested

    2024年04月13日
    瀏覽(21)
  • jupyter notebook 導(dǎo)入已經(jīng)在pycharm里pip install過的包報錯

    ??: 當(dāng)我每天都在cmd/Terminal等地方pip install我的python lib時,打開Jupyter notebook 發(fā)現(xiàn),有一些包明明在電腦里有,比如torch, searborn之類的,在jupyter notebook 里import 對應(yīng)包確報錯,找不到這些包 ??查看平時pip install 的lib文件目錄 在jupyter notebook 的cell里面輸入: ??運行上面代碼

    2024年02月08日
    瀏覽(23)
  • python安裝wordcloud包報錯:No module named ‘wordcloud‘

    直接在cmd使用pip install wordcloud進行安裝后,在jupyter notebook中導(dǎo)入wordcloud包會報錯 發(fā)現(xiàn)是因為沒有安裝在anaconda的路徑里 解決方法:打開anaconda prompt進行pip install wordcloud,安裝完成后可以在jupyter環(huán)境中成功導(dǎo)入 去年這時候安過一次wordcloud包,當(dāng)時好像也有這個問題,沒有及時

    2024年02月11日
    瀏覽(36)
  • ERROR: Failed building wheel for pycocotools,解決pip導(dǎo)入pycocotools報錯,無需下載Microsoft Visual C++

    ERROR: Failed building wheel for pycocotools,解決pip導(dǎo)入pycocotools報錯,無需下載Microsoft Visual C++

    解決: ERROR: Command errored out with exit status 1: creating buildlib.win-amd64-3.8 creating buildlib.win-amd64-3.8pycocotools copying pycocotoolscoco.py - buildlib.win-amd64-3.8pycocotools copying pycocotoolscocoeval.py - buildlib.win-amd64-3.8pycocotools copying pycocotoolsmask.py - buildlib.win-amd64-3.8pycocotools copying pycocotools_ in

    2024年02月06日
    瀏覽(28)
  • pycharm 無法加載pip3安裝包報錯:python packing tools not found. install packing tools

    win+R輸入cmd,然后輸入代碼,回車,出現(xiàn)install sucessfully表示成功 Python 2.7.9 + 或 Python 3.4+ 以上版本都自帶 pip 工具。 查看是否已經(jīng)安裝 pip 可以使用以下命令: 下載安裝包使用以下命令: 例如我們安裝 numpy 包: 我們也可以輕易地通過以下的命令來移除軟件包: 例如我們移除

    2024年02月05日
    瀏覽(28)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包