我试图安装一个名为 debacl 的模块,该模块可以在 Windows 64上的https://github.com/CoAxLab/DeBaCl上找到。
我正在使用 install 命令安装模块:
In [18]: run -i setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
running install_egg_info
Removing C:\Users\vjons\AppData\Local\Enthought\Canopy\User\Lib\site-packages\debacl-0.2.0-py2.7.egg-info
Writing C:\Users\vjons\AppData\Local\Enthought\Canopy\User\Lib\site-packages\debacl-0.2.0-py2.7.egg-info
然后文件夹 debacl 会在 Canopy\User\Lib\site-packages 文件夹中弹出。但是当我尝试导入新安装的模块时,我收到以下错误消息:
In [3]: import debacl
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-5ef0bbe97964> in <module>()
----> 1 import debacl
C:\Users\vjons\AppData\Local\Enthought\Canopy\User\lib\site-packages\debacl\__init__.py in <module>()
1 # main debacl __init__.py
2
----> 3 import geom_tree
4 import cd_tree
5 import utils
C:\Users\vjons\AppData\Local\Enthought\Canopy\User\lib\site-packages\debacl\geom_tree.py in <module>()
24 import utils as utl
25 except:
---> 26 raise ImportError("Critical packages are not installed.")
27
28 try:
ImportError: Critical packages are not installed.
Okaj,我想这意味着必须安装 utils 包才能使用 debacl。但是 utils 包含在 debacl/-文件夹中:
In [4]: ls C:\Users\vjons\AppData\Local\Enthought\Canopy\User\Lib\site-packages\debacl
Volume in drive C has no label.
Volume Serial Number is 423B-C99D
Directory of C:\Users\vjons\AppData\Local\Enthought\Canopy\User\Lib\site-packages\debacl
2014-05-26 16:04 72 __init__.py
2014-05-26 16:05 255 __init__.pyc
2014-05-26 16:04 25 521 cd_tree.py
2014-05-26 16:14 23 466 cd_tree.pyc
2014-05-26 16:04 50 373 geom_tree.py
2014-05-26 16:14 47 087 geom_tree.pyc
2014-05-26 16:05 <DIR> test
2014-05-26 16:04 21 488 utils.py
2014-05-26 16:14 22 480 utils.pyc
我错过了什么吗?