无法启动主管deamon

时间:2017-06-26 07:36:19

标签: python amazon-ec2 pip supervisord supervisor

重启supervisord时出现以下错误。我搜索了它并尝试了pip install --upgrade setuptoolseasy_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 个答案:

答案 0 :(得分:1)

我使用Amazon Linux AMI启动了一个新的Amazon EC2实例,并做了:

sudo easy_install supervisor

工作正常。

基于:http://supervisord.org/installing.html