Stable Diffusion 本地部署教程 踩的一些坑

        参考教程 Stable Diffusion 本地部署教程 | AI技术聚合 一步一步进行本地部署,我在部署过程中遇到的一些问题

问题1

        描述: could not find a version that satisfies the requirement tb-nightly (from gfpgan)

无法安装 tb-nightly,然后尝试直接pip 安装,出现如下错误:

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

        原因:教程中设置的源没有这个包,既然已经科学上网了,直接使用默认的源即可;

        解决:windows 参考 Python随笔:设置Windows的pip镜像配置文件 pip.ini_集电极的博客-CSDN博客 ,简而言之就是删除文件 C:\Users\你的用户名\AppData\Roaming\pip\pip.ini 中的[global]及其 index-url内容;

                linux 参考 pip最新源总结及pip常见问题解决方法(亲测有效)_pip 出问题_快乐的学习的博客-CSDN博客 ,简而言之就是删除文件 ~/.pip/pip.conf 中的[global]及其 index-url内容;

问题2

        描述: fatal: unable to access ‘https://github.com/salesforce/BLIP.git/’: OpenSSL SSL_read: Connection was reset, errno 10054

        原因:需要设置git的代理;

        解决:参考 Github报错OpenSSL SSL_connect ,简而言之 命令行中执行下面两条命令:

git config –-global http.proxy 127.0.0.1:7890
git config –-global https.proxy 127.0.0.1:7890

                   另外也设置一下 命令行的代理(注:每次打开命令行要重新设置):

set HTTP_PROXY=http://127.0.0.1:7890

问题3

        描述: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.

        原因: 不明原因;

        解决: 使用 git bash 运行 webui-user.bat 。

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
乘风的头像乘风管理团队
上一篇 2023年12月23日
下一篇 2023年12月23日

相关推荐