从Ubuntu14.04 python2.7本机安装后,pyql无法访问

时间:2014-10-07 08:31:43

标签: enthought

在Ubuntu 14.04上从the package source(根据自己的向导described in this file)安装pyql到/usr/local/lib/python2.7/dist-packages/文件夹后,所有测试都成功完成。此文件夹包含可以使用native import命令从python访问的所有其他已安装的软件包。 但是,这个特定的安装python看不到,我无法从中导入任何东西。 你知道吗,我需要另外定义什么? 谢谢, Yigal B.

我的sys.path有结果:

import sys
print(sys.path)

['/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']

python -c 'from quantlib.settings import __quantlib_version__; print __quantlib_version__'
Traceback (most recent call last):
   File "<string>", line 1, in <module>
ImportError: No module named quantlib.settings

1 个答案:

答案 0 :(得分:1)

你能发布sys.path的内容吗?

的输出

python -c 'from quantlib.settings import __quantlib_version__; print __quantlib_version__'