????????參考教程?Stable Diffusion 本地部署教程 | AI技術(shù)聚合?一步一步進行本地部署,我在部署過程中遇到的一些問題
問題1
????????描述:?could not find a version that satisfies the requirement tb-nightly (from gfpgan)
無法安裝 tb-nightly,然后嘗試直接pip 安裝,出現(xiàn)如下錯誤:
C:\Users\xx>pip install tb-nightly
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement tb-nightly (from versions: none)
ERROR: No matching distribution found for tb-nightly
????????原因:教程中設(shè)置的源沒有這個包,既然已經(jīng)科學(xué)上網(wǎng)了,直接使用默認的源即可;
? ? ? ? 解決:windows 參考?Python隨筆:設(shè)置Windows的pip鏡像配置文件 pip.ini_集電極的博客-CSDN博客?,簡而言之就是刪除文件?C:\Users\你的用戶名\AppData\Roaming\pip\pip.ini 中的[global]及其 index-url內(nèi)容;
? ? ? ? ? ? ? ? linux 參考?pip最新源總結(jié)及pip常見問題解決方法(親測有效)_pip 出問題_快樂的學(xué)習(xí)的博客-CSDN博客?,簡而言之就是刪除文件 ~/.pip/pip.conf?中的[global]及其 index-url內(nèi)容;
問題2
? ? ? ? 描述:?fatal: unable to access 'https://github.com/salesforce/BLIP.git/': OpenSSL SSL_read: Connection was reset, errno 10054
? ? ? ? 原因:需要設(shè)置git的代理;
????????解決:參考?Github報錯OpenSSL SSL_connect?,簡而言之 命令行中執(zhí)行下面兩條命令:
git config –-global http.proxy 127.0.0.1:7890
git config –-global https.proxy 127.0.0.1:7890
? ? ? ? ? ? ? ? ? ?另外也設(shè)置一下 命令行的代理(注:每次打開命令行要重新設(shè)置):
set HTTP_PROXY=http://127.0.0.1:7890
問題3
? ? ? ? 描述:?HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
? ? ? ? 原因: 不明原因;文章來源:http://www.zghlxwxcb.cn/news/detail-593196.html
? ? ? ? 解決: 使用 git bash 運行 webui-user.bat 。文章來源地址http://www.zghlxwxcb.cn/news/detail-593196.html
到了這里,關(guān)于Stable Diffusion 本地部署教程 踩的一些坑的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!