找不到满足setuptools>=61要求的版本

问题描述 投票:0回答:1

这个问题已经被问过很多次了,但到目前为止,没有一个解决方案对我有用。我正在尝试在离线环境中将 Pint 库安装到 Python 中。但我不断收到此错误:

error: subprocess-exited-with-error


pip subprocess to install build dependencies did not run successfully.
exit code:1
   [3 lines of output]
   Looking in links: c:\filepath
   ERROR: Could not find a version that satisfies the requirement setuptools>=61
(from versions: none)
   ERROR: No matching distribution found for setuptools>=61
   [end of output]

我检查了我的 Python 和 pip 版本。它们分别是 3.11.4 和 23.2.1。

python pip setuptools
1个回答
0
投票

您还需要安装 setuptools 库(也来自 pip),也许可以先尝试安装它。

只需下载 setuptools 的

whl
tar.gz
文件即可安装(从这里从 PyPI 下载)。

然后只需使用以下命令安装它:

python3 -m pip install /path/to/whl/file

在 Windows 上:

py -m pip install C:/path/to/whl/file

希望这有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.