gpt4 book ai didi

python - Python3 中的 Easy_Install 表示即使是最新的,也找不到 setuptools

转载 作者:太空宇宙 更新时间:2023-11-03 17:48:11 24 4
gpt4 key购买 nike

我运行了“sudo easy_install3 py-notify”并将我的安装工具更新到当前版本(15),我的所有东西都已更新和升级。我不明白为什么它无法检测到 setuptools。

它说我需要 3.3但我有 15 个,怎么不起作用

$ sudo easy_install3 py-notify
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 639, in _build_master
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 940, in require
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 832, in resolve
pkg_resources.VersionConflict: (setuptools 15.0 (/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg), Requirement.parse('setuptools==3.3'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/easy_install3", line 5, in <module>
from pkg_resources import load_entry_point
File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 3057, in <module>
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 641, in _build_master
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 654, in _build_from_requirements
File "/usr/local/lib/python3.4/dist-packages/setuptools-15.0-py3.4.egg/pkg_resources/__init__.py", line 827, in resolve
pkg_resources.DistributionNotFound: The 'setuptools==3.3' distribution was not found and is required by the application

最佳答案

如果您有 pip,则可以使用:pip list 查看所有已安装的模块。如果您看不到 setuptools,请手动安装。

关于python - Python3 中的 Easy_Install 表示即使是最新的,也找不到 setuptools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29458213/

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