新开了一台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已经可以用了,仅作为参考。