当前位置:   article > 正文

pip 安装模块失败问题_pip cannot determine archive format

pip cannot determine archive format

问题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

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
  

闽ICP备14008679号