pip 安装模块失败问题
问题1:
ERROR: Could not find a version that satisfies the requirement xlwt (from vers ions: none)
ERROR: No matching distribution found for xlwt
原因:网络问题或者是pip版本需要更新
pip升级:python -m pip install --upgrade pip
网络问题更换金镜像源:pip install https://pypi.tuna.tsinghua.edu.cn/simple 模块名
按照上述操作后,出现了问题2
报错: ERROR: Cannot unpack file c:\users\admini~1\appdata\local\temp\pip-unpack-uwt0 as\simple (downloaded from c:\users\admini~1\appdata\local\temp\pip-req-build-7m zbzm, content-type: text/html; charset=utf-8); cannot detect archive format ERROR: Cannot determine archive format of c:\users\admini~1\appdata\local\temp\p ip-req-build-7mzbzm
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 模块名
原始解决方案网站:https://blog.csdn.net/cn_1937/article/details/81449484
————————————————
版权声明:本文为CSDN博主「步履蹒跚的猴子」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xy20110803124/article/details/91363215