Easy_Install 在 Python3 中说即使它是最新的也找不到 setuptools

Easy_Install in Python3 says setuptools not found even when it's up to date

我 运行 "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,请手动安装。