重新启动supervisord时出现以下错误。我搜索并尝试了pip install --upgrade setuptools
,easy_install --upgrade pip
但没有任何效果。
$ sudo /etc/init.d/supervisord start
Starting supervisord: Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/dist-packages/pkg_resources/__init__.py", line 3020, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.6/dist-packages/pkg_resources/__init__.py", line 616, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.6/dist-packages/pkg_resources/__init__.py", line 629, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.6/dist-packages/pkg_resources/__init__.py", line 807, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: supervisor==3.3.1
[FAILED]
我正在使用 Amazon AMI 实例。请帮忙。
答案1
我得到了我需要的答案sudo easy_install supervisor
在 amazon ec2 中,这有效。它符合此安装链接