解决ERROR: Cannot determine archive format of C:\Users\Zz\AppData\Local\Temp\pip-req-build-t35bzb_f

转载https://blog.csdn.net/MLONGKRT/article/details/113407514

  1. 问题处理
    当我们更换镜像源进行pip 安装时,可能会出现报错:ERROR: Cannot determine archive format of :XXXXXXXXXX
    比如我刚开始安装tf2.0:

pip install -i https://pypi.douban.com/simple tensorflow==2.0.0
出现了上面的错误,下面我们只需要改成如下即可:

pip install -i https://pypi.douban.com/simple --trusted-host pypi.douban.com tensorflow==2.0.0
通过设置 --trusted-host pypi.douban.com 信任该镜像源。
————————————————
版权声明:本文为CSDN博主「MLONGKRT」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/MLONGKRT/article/details/113407514
2. 其他常用镜像源
阿里云 http://mirrors.aliyun.com/pypi/simple

豆瓣 http://pypi.douban.com/simple

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple

中科大 http://pypi.mirrors.ustc.edu.cn/simple

网易云 https://mirrors.163.com/pypi/simple
当我们用其他源进行安装时,出现上面问题时。同样可以使用这种解决方法:

以清华源为例
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 模块名

————————————————
版权声明:本文为CSDN博主「MLONGKRT」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/MLONGKRT/article/details/113407514

  • 50
    点赞
  • 154
    收藏
    觉得还不错? 一键收藏
  • 11
    评论
这个错误是由于pip在安装某个包时无法确定该包的归档格式所引起的。解决这个问题的方法是通过使用镜像源来安装该包。你可以尝试使用豆瓣源来解决这个问题,只需运行以下命令: pip install -i Django https://pypi.douban.com/simple/ --trusted-host pypi.douban.com 这将使用豆瓣源作为镜像源来安装Django包,并解决无法确定归档格式的错误。 另外,你也可以使用其他镜像源来解决这个问题。例如,你可以使用清华大学的镜像源来安装neo4j包,只需运行以下命令: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn neo4j 这将使用清华大学的镜像源来安装neo4j包。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [错误记录:ERROR: Cannot determine archive format of C:\Users\lbt10\AppData\Local\Temp\pip-req-build-...](https://blog.csdn.net/weixin_46226815/article/details/129467117)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [ERROR:Cannot determine archive format of C:\Users shelzhou AppData Local \Temp pip-req-build-ooyyxtx](https://blog.csdn.net/qq_43443900/article/details/119860729)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值