= 0.8 for dist-info"-6ren"> = 0.8 for dist-info"-使用最新 (1.5) 版本的 pip,我在尝试更新多个软件包时遇到错误。例如,sudo pip install -U pytz 会导致失败: Wheel installs require setupt-6ren">
gpt4 book ai didi

python - 最新的 'pip' 失败,出现 "requires setuptools >= 0.8 for dist-info"

转载 作者:IT老高 更新时间:2023-10-28 21:12:24 25 4
gpt4 key购买 nike

使用最新 (1.5) 版本的 pip,我在尝试更新多个软件包时遇到错误。例如,sudo pip install -U pytz 会导致失败:

Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.

我不明白这条消息 (I have setuptools 2.1)或如何处理。


此错误日志中的异常信息:

Exception information:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 230, in run
finder = self._build_package_finder(options, index_urls, session)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 185, in _build_package_finder
session=session,
File "/Library/Python/2.7/site-packages/pip/index.py", line 50, in __init__
self.use_wheel = use_wheel
File "/Library/Python/2.7/site-packages/pip/index.py", line 89, in use_wheel
raise InstallationError("pip's wheel support requires setuptools >= 0.8 for dist-info support.")
InstallationError: pip's wheel support requires setuptools >= 0.8 for dist-info support.

最佳答案

这对我有用:

sudo pip install setuptools --no-use-wheel --upgrade

注意它是 sudo

的用法

更新

在 Windows 上,您只需以管理员身份执行 pip install setuptools --no-use-wheel --upgrade。在 Unix/Linux 中,sudo 命令用于提升权限。

更新 2

这似乎已在 1.5.1 中修复。

关于python - 最新的 'pip' 失败,出现 "requires setuptools >= 0.8 for dist-info",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20905350/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com