通过豆瓣源下载库时出现“Cannot unpack file ”问题,可以考虑换源下载

!pip install librosa  https://pypi.douban.com/simple

通过上述豆瓣源下载,显示如下错误


DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
  ERROR: Cannot unpack file c:\users\zx305\appdata\local\temp\pip-unpack-hlcv_h\simple.html (downloaded from c:\users\zx305\appdata\local\temp\pip-req-build-yryalj, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of c:\users\zx305\appdata\local\temp\pip-req-build-yryalj

可以替换为如下格式

pip install <包名> -i https://pypi.douban.com/simple
上面使用的是豆瓣源,下面是其他国内源,替换上面的地址即可,都很快,随便用哪个。
# 阿里云 http://mirrors.aliyun.com/pypi/simple/
# 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
# 豆瓣(douban) http://pypi.douban.com/simple/
# 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 
# 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

上述方法依旧存在解决不了的可能,后续通过一定手段规避了这一问题,但具体方法记不得了

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

认知计算_茂森

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值