我安装了一个`lxml`,我找不到它

时间:2017-07-17 23:22:16

标签: google-cloud-datalab

我必须解析xml并尝试安装和使用该库。我将其安装在datalab notebook上,如下所示。

!pip install lxml
Requirement already satisfied: lxml in /usr/local/lib/python2.7/dist-packages

但是当我尝试使用它时,我收到了一个错误。

FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

所有内容都用作datalab。这是环境变量之类的问题吗?

感谢。

更新

是否可以展示另一个样品? (在datalab notebook

!pip install scikit-learn==0.18.1
Requirement already satisfied: scikit-learn==0.18.1 in /usr/local/lib/python2.7/dist-packages

import sklearn
print ("scikit-learn version: {}". format(sklearn.__version__))
scikit-learn version: 0.17.1

print(sklearn.__path__)
['/usr/local/lib/python2.7/dist-packages/sklearn']

它可能似乎在没有读取安装路径的情况下引用默认环境变量。你觉得怎么样?

溶液

Restart Service已修复。谢谢@yelsayed @Ethan_kim

0 个答案:

没有答案