Closed lvzhaoxing closed 10 years ago
你的机器上有外网吗? 你先确认一下在你的机器上随便用pip装个什么python的库,看能不能成功?
查了一下,PIP确实各种出错。谢谢。我先排查一下。
官方的源上貌似没有elementtree这个包
pip 源正常了。目前刚配完tank,正要配supervisor。 目前minos的env中已安装包清单如下:
(env)[root@AY1407221519105745fcZ minos]# pip list
configobj (5.0.6)
Django (1.7)
meld3 (1.0.0)
pip (1.5.4)
PyYAML (3.11)
setuptools (2.2)
six (1.8.0)
wsgiref (0.1.2)
最后把minos_config.py中的相关代码注释掉了,正常运行了:
# supervisor
SUPERVISOR_PREREQUISITE_PYTHON_LIBS = [
('setuptools', 'setuptools', '1.4.0'),
('meld3', 'meld3', '0.6.10'),
#('elementtree', 'elementtree', '1.2.6-20050316'),
('pexpect', 'pexpect', '3.0'),
]
赞。
系统环境: CentOS 6.5 64位 Python 2.7.8
报错内容:
所提问题: 经检查在Python 2.7.8中已经存在elementtree,是否能把安装elementtree模块的这一步去掉,具体要修改哪个文件?