今天在安装Audio GPT各项依赖的时候报错了,第一次用pip总结如下“
1. error: subprocess-exited-with-error
TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip
原因:部分包缺失
解决方式:手动下载
执行 pip -install xxxx
下载包并,粘贴到pip下载包默认存储的site-packages目录下
可以使用以下命令查看pip下载包默认存储确切的路径:
python -c "import site; print(site.getsitepackages())"
2 、 fatal: unable to access ‘https://github.com/openai/CLIP.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
Collecting git+https://github.com/openai/CLIP.git (from -r requirements.txt (line 71))
Cloning https://github.com/openai/CLIP.git to c:\users\98191\appdata\local\temp\pip-req-build-rjp2h9t5
Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\98191\AppData\Local\Temp\pip-req-build-rjp2h9t5'
fatal: unable to access 'https://github.com/openai/CLIP.git/': Failed to connect to github.com port 443: Timed out
fatal: unable to access 'https://github.com/openai/CLIP.git/': Failed to connect to github.com port 443: Timed out
error: unable to read sha1 file of .gitignore (321f181f917b03529a05fc27aee81a0bd6fba32d)
我这里出现这种情况主要是梯子不稳定的问题,执行
ipconfig /flushdns
即可,比配置git代理的方法有效。
大家有碰到什么问题的话也可以评论或者私信我,一起交流,一起进步!