首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu中的cElementTree不饱和

Ubuntu中的cElementTree不饱和
EN

Stack Overflow用户
提问于 2016-11-29 15:39:41
回答 1查看 877关注 0票数 0

如何在存在cElementTree 2.7Ubuntu上安装cElementTree

需要1.0.5版

代码语言:javascript
复制
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安装cElementTree

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-11-29 15:49:34

来自http://effbot.org/zone/celementtree.htm

cElementTree包含在Python2.5及更高版本中,作为xml.etree.cElementTree。

你可以做一个“手册”的安装,从来源可在网站上。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40869840

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档