微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

当 setuptools 已明确安装时,为什么 pip install 错误,setuptools version = none?

如何解决当 setuptools 已明确安装时,为什么 pip install 错误,setuptools version = none?

在 redhat 7 系统上工作。像 pip 这样的实用程序无法访问互联网。我们让 IT 在系统上安装了新版本的 python 3.8.1,它成功安装了 pip 19.2.3 和 setuptools 41.2.0。我们使用这个版本的python来创建一个虚拟环境。在该虚拟环境中,我们使用 pip 从本地存储库安装一组库。

在激活的虚拟环境中,命令类似于:

pip install -r /location/to/our/requirements.txt --no-index --find-links file:///location/of/our/tarballs

执行过程时会出现一些错误字符串,其中包括以下内容

command: pip install -r /location/to/our/requirements.txt --no-index --find-links file:///location/of/our/tarballs -- 'setuptools >= 40.6.0' wheel
cwd: none
looking in links: /location/of/our/tarballs
Collecting setuptools>=40.6.0
ERROR: Could not find a version that satisfies the requirement setuptools>=40.6.0 (from versions:none)
ERROR: No matching distribution found for setuptools>=40.6.0

谁能解释为什么我们会收到这个错误

我们运行了 pip list,它清楚地显示 setuptools 版本高于 40。是否有我遗漏的配置?第一个抛出这个错误的包是django-bootstrap-3.0.1

pip        19.2.3
setuptools 41.2.0

有趣的笔记

我们的架构师在家里运行它时遇到的问题为零。

我们在同一个盒子上有一个 python3.6 版本。可以设置我们的虚拟环境并安装 python3.6 包没有问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。