1
我运行了“sudo easy_install3 py-notify”,并将setuptools更新为当前版本(15),我所有的东西都被更新和升级。我不明白为什么它无法检测到setuptools。Python3中的Easy_Install说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”。不应再使用'easy_install',因为它已过时。 – 2015-04-05 16:33:48