如何在存在cElementTree 2.7的Ubuntu上安装cElementTree,
需要1.0.5版
Python 2.7.6 (default, Oct 26 2016, 20:32:47)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cElementTree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cElementTreesudo pip安装cElementTree
root@imp-vivek:/home/# sudo pip install cElementTree
Downloading/unpacking cElementTree
Could not find any downloads that satisfy the requirement cElementTree
Cleaning up...
No distributions at all found for cElementTree
Storing debug log for failure in /root/.pip/pip.log发布于 2016-11-29 15:49:34
来自http://effbot.org/zone/celementtree.htm
cElementTree包含在Python2.5及更高版本中,作为xml.etree.cElementTree。
你可以做一个“手册”的安装,从来源可在网站上。
https://stackoverflow.com/questions/40869840
复制相似问题