pip安装任何包都出现问题: Cannot unpack file /tmp/pip-KzJgHD-unpack/simple

Cannot unpack file /tmp/pip-KzJgHD-unpack/simple (downloaded from /tmp/pip-M1hKq2-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-M1hKq2-build
阅读 26.8k
3 个回答

好像是源的问题,换了一个源就好了

新手上路,请多包涵

需要添加 --extra-index-url 如:

pip install --extra-index-url http://mirrors.aliyun.com/pypi/simple/ config

--extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url

原文链接

推荐问题