Ubuntu中的celementree insatall

2024-03-29 11:16:12 发布

您现在位置:Python中文网/ 问答频道 /正文

如何在Ubuntu上安装cElementTree,其中Python2.7

需要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 cElementTree

sudo pip install cElementTree

^{pr2}$

Tags: ordefaultforlicenseonubuntutypehelp