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 。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值