已解決stderr: ERROR: Could not find a version that satisfies the requirement gradio==3.23
ERROR: No matching distribution found for gradio==3.23
報錯問題
粉絲群里面的一個小伙伴遇到問題跑來私信我,想用pip安裝gradio ,但是發(fā)生了報錯(當(dāng)時他心里瞬間涼了一大截,跑來找我求助,然后順利幫助他解決了,順便記錄一下希望可以幫助到更多遇到這個bug不會解決的小伙伴)如下所示:
這是完整的報錯信息,下面的方法都試過了,但最終還是報這個錯誤:
(sdwebui) D:\stable-diffusion-webui>webui-user.bat
venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)]
Commit hash: 84026821188ccf81b91c9c854a18f9852b90b13f
Installing requirements for Web UI
Traceback (most recent call last):
File "D:\stable-diffusion-webui\launch.py", line 380, in <module>
prepare_environment()
File "D:\stable-diffusion-webui\launch.py", line 326, in prepare_environment
run_pip(f"install -r \"{requirements_file}\"", "requirements for Web UI")
File "D:\stable-diffusion-webui\launch.py", line 145, in run_pip
return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
File "D:\stable-diffusion-webui\launch.py", line 113, in run
raise RuntimeError(message)
RuntimeError: Couldn't install requirements for Web UI.
Command: "D:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary
Error code: 1
stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting blendmodes==2022
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a9/1a/fc3216efda12211fd50823a720fed817e6d936ecacd9531277207c4e9838/blendmodes-2022-py3-none-any.whl (10 kB)
Collecting transformers==4.25.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/90/5b/02becd3e137fdacdc30c6442d04094d0b92e500f978df00b1a197b68fd2b/transformers-4.25.1-py3-none-any.whl (5.8 MB)
Collecting accelerate==0.12.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/52/36/1a3aec552da693acbb65f9f3613433bea0e065448ef27dc7a9c2f2fb1efa/accelerate-0.12.0-py3-none-any.whl (143 kB)
Requirement already satisfied: basicsr==1.4.2 in d:\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 4)) (1.4.2)
Collecting gfpgan==1.3.8
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/80/a2/84bb50a2655fda1e6f35ae57399526051b8a8b96ad730aea82abeaac4de8/gfpgan-1.3.8-py3-none-any.whl (52 kB)
stderr: ERROR: Could not find a version that satisfies the requirement gradio==3.23 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.4.0, 0.4.1, 0.4.2, 0.4.4, 0.5.0, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9.2, 0.9.9.3, 0.9.9.5, 0.9.9.6, 0.9.9.7, 0.9.9.8, 0.9.9.9, 0.9.9.9.2, 1.0.0a1, 1.0.0a3, 1.0.0a4, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.8, 1.1.8.1, 1.1.9, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.2, 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7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.0b3, 3.6.0b7, 3.6.0b10, 3.6, 3.7, 3.8b1, 3.8b2, 3.8, 3.8.1.dev1, 3.8.1, 3.8.2, 3.9, 3.9.1, 3.10.0, 3.10.1, 3.11.0, 3.12.0b1, 3.12.0b2, 3.12.0b3, 3.12.0b6, 3.12.0b7, 3.12.0, 3.13.0b1, 3.13.0, 3.13.1b0, 3.13.1b1, 3.13.1b2, 3.13.1, 3.13.2, 3.14.0a1, 3.14.0, 3.15.0, 3.16.0, 3.16.1b1, 3.16.1, 3.16.2, 3.17.0, 3.17.1b1, 3.17.1b2, 3.17.1, 3.18.0, 3.18.1b1, 3.18.1b2, 3.18.1b3, 3.18.1b4, 3.18.1b5, 3.18.1b6, 3.18.1b7, 3.19.0, 3.19.1, 3.20.0b1, 3.20.0b2, 3.20.0, 3.20.1, 3.21.0, 3.22.0, 3.22.1b1, 3.22.1)
ERROR: No matching distribution found for gradio==3.23
報錯翻譯
報錯信息內(nèi)容翻譯如下所示:
stderr:錯誤:找不到滿足要求的版本gradio==3.23
錯誤:找不到gradio==3.23的匹配分布
報錯原因
報錯原因:
這個報錯可能是由于您正在嘗試安裝的gradio版本不存在或不可用引起的。
小伙伴們按下面的方法正確安裝即可解決?。?!
解決方法
這個報錯可能是由于您正在嘗試安裝的gradio版本不存在或不可用引起的。您可以嘗試以下步驟:
-
確保您的網(wǎng)絡(luò)連接正常。如果您的網(wǎng)絡(luò)連接不穩(wěn)定,請嘗試切換到其他網(wǎng)絡(luò)或等待網(wǎng)絡(luò)恢復(fù)正常。
-
檢查您正在嘗試安裝的gradio版本是否存在。您可以在gradio的官方網(wǎng)站或倉庫中查找可用的版本。
-
如果您使用的是conda或pip安裝gradio,請嘗試更新conda或pip到最新版本。您可以使用以下命令進行升級:
conda update conda pip install --upgrade pip
-
如果您使用的是conda安裝gradio,請嘗試添加conda-forge渠道。您可以使用以下命令添加該渠道:
conda config --add channels conda-forge
-
如果以上步驟均未能解決問題,請嘗試使用其他版本的gradio或等待開發(fā)者修復(fù)問題。您可以在gradio的官方網(wǎng)站或倉庫中查找其他版本的gradio。
如果您仍然無法解決問題,請嘗試在gradio的官方社區(qū)中搜索類似的問題,并尋求幫助。
以上是此問題報錯原因的解決方法,歡迎評論區(qū)留言討論是否能解決,如果有用歡迎點贊收藏文章謝謝支持,博主才有動力持續(xù)記錄遇到的問題!??!
千人全棧VIP答疑群聯(lián)系博主幫忙解決報錯
由于博主時間精力有限,每天私信人數(shù)太多,沒辦法每個粉絲都及時回復(fù),所以優(yōu)先回復(fù)VIP粉絲,可以通過訂閱限時9.9付費專欄《100天精通Python從入門到就業(yè)》進入千人全棧VIP答疑群,獲得優(yōu)先解答機會(代碼指導(dǎo)、遠程服務(wù)),白嫖80G學(xué)習(xí)資料大禮包,專欄訂閱地址:https://blog.csdn.net/yuan2019035055/category_11466020.html
-
優(yōu)點:作者優(yōu)先解答機會(代碼指導(dǎo)、遠程服務(wù)),群里大佬眾多可以抱團取暖(大廠內(nèi)推機會),此專欄文章是專門針對零基礎(chǔ)和需要進階提升的同學(xué)所準(zhǔn)備的一套完整教學(xué),從0到100的不斷進階深入,后續(xù)還有實戰(zhàn)項目,輕松應(yīng)對面試!
-
專欄福利:簡歷指導(dǎo)、招聘內(nèi)推、每周送實體書、80G全棧學(xué)習(xí)視頻、300本IT電子書:Python、Java、前端、大數(shù)據(jù)、數(shù)據(jù)庫、算法、爬蟲、數(shù)據(jù)分析、機器學(xué)習(xí)、面試題庫等等
-
注意:如果希望得到及時回復(fù),和大佬們交流學(xué)習(xí),訂閱專欄后私信博主進千人VIP答疑群
文章來源:http://www.zghlxwxcb.cn/news/detail-416823.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-416823.html
到了這里,關(guān)于已解決ERROR: No matching distribution found for gradio==3.23的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!