Audio GPT安装时 pip install出现的各种坑总结

今天在安装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代理的方法有效。

大家有碰到什么问题的话也可以评论或者私信我,一起交流,一起进步!

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值