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