解决pip错误ERROR: Cannot unpack file C:\Users\Administrator\AppData\Local\Temp\pip-unpack-gqvvcmix\simp

一、报错信息

博主使用清华源安装 sphinx包时,出现:ERROR: Cannot unpack file C:\Users\Administrator\AppData\Local\Temp\pip-unpack-xheicd4t\simple.html (downloaded from C:\Users\Administrator\AppData\Local\Temp\pip-req-build-00dtxg10, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\Administrator\AppData\Local\Temp\pip-req-build-00dtxg10


在这里插入图片描述

二、解决方法

换个镜像源,使用如下命令即可解决

pip install sphinx -i https://pypi.douban.com/simple --trust -host=pypi.douban.com

解决pip错误ERROR: Cannot unpack file C:\Users\Administrator\AppData\Local\Temp\pip-unpack-gqvvcmix\simp_第1张图片

你可能感兴趣的:(疑难杂症,pip,python,linux)