操作系统:Ubuntu 15.10
使用默认的Python解释器导入pygtk没有问题。但是,我无法使用Anaconda口译员这样做。
Python 2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import pygtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
在使用conda安装pygtk后,我也无法使用它。
/opt/anaconda2/pkgs$ conda info --env
Using Anaconda Cloud api site https://api.anaconda.org
# conda environments:
#
root * /opt/anaconda2
/opt/anaconda2/pkgs$ conda list -n root|grep pygtk
pygtk 2.16.0 1 ska
从输出中可以看出pygtk pkg在根env。
下可用我错过或做错了什么想法?
答案 0 :(得分:0)