在使用pip install -i https://mirrors.aliyun.com/pypi/simple/ 命令安装包时报错
ERROR: Cannot unpack file C:\Users\hp\AppData\Local\Temp\pip-unpack-gp63cpz4\simple.html (downloaded from C:\Users\hp\AppData\Local\Temp\pip-req-build-0ajj0qbw, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\hp\AppData\Local\Temp\pip-req-build-0ajj0qbw
修改python环境:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
查看设置是否成功:
pip config get global.index-url
本文讲述了用户在使用pip通过HTTPS链接从阿里云镜像安装Python包时遇到的错误,涉及文件无法检测到archive格式,以及如何通过修改pip配置解决该问题的过程。

被折叠的 条评论
为什么被折叠?



