当 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 (将#修改为@)