这个问题已经被问过很多次了,但到目前为止,没有一个解决方案对我有用。我正在尝试在离线环境中将 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。
您还需要安装 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
希望这有帮助!