解决Supervisor不能运行
本文最后更新于 2249 天前,其中的信息可能已经有所发展或是发生改变。

新开了一台vps,CentOS6.5系统,用pip安装了supervisor,不能运行,看提示缺少了某个模块。

记录一下过程:

错误1:

Traceback (most recent call last):
  File "/usr/bin/supervisorctl", line 5, in 
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in 
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: meld3>=0.6.5

解决方法:

wget --no-check-certificate  https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip
unzip distribute-0.7.3.zip
cd distribute-0.7.3
python setup.py install

错误2:

Traceback (most recent call last):
  File "/usr/bin/supervisorctl", line 5, in 
    from pkg_resources import load_entry_point
  File "/root/distribute-0.7.3/pkg_resources.py", line 2989, in 
    working_set.require(__requires__)
  File "/root/distribute-0.7.3/pkg_resources.py", line 726, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/root/distribute-0.7.3/pkg_resources.py", line 629, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File "/root/distribute-0.7.3/pkg_resources.py", line 2471, in requires
    dm = self._dep_map
  File "/root/distribute-0.7.3/pkg_resources.py", line 2682, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/root/distribute-0.7.3/pkg_resources.py", line 2699, in _compute_dependencies
    from _markerlib import compile as compile_marker
ImportError: No module named _markerlib

解决方法:

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

或者这个地址

https://bitbucket.org/pypa/setuptools/raw/0.7.3/ez_setup.py

supervisor已经可以用了,仅作为参考。

暂无评论

发送评论 编辑评论


|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇