在这个帖子中
https://blog.csdn.net/qq_33957603/article/details/129523740
操作到这里的时候
或者使用conda创建虚拟环境一键安装依赖
conda env create -f environment.yaml
控制台报错
**(venv) PS D:\05 python_workspace\stable-diffusion-main\stable-diffusion-main> conda env create -f environment.yaml
Collecting package metadata (repodata.json): done
Solving environment: done
Downloading and Extracting Packages
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/pytorch/win-64/pytorch-1.11.0-py3.8_cuda11.3_cudnn8_0.tar.bz2
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
**
请问如何解决
已解决,问题出在这个包太大了,某种情况下因为网络原因会下载失败.
报错中有下载失败的包的连接,可以通过迅雷或者浏览器自带的下载器下载下来.
然后放到名为environment.yaml文件中name属性的文件夹中.
重新执行
conda env create -f environment.yaml
就可以了
会不会是环境问题导致