我正在尝试在Anaconda 安装(Python 3.3)中获取一个简单的Blaze 示例,在 Ubuntu 上工作。
import blaze
from blaze import array
from datashape import dshape
# array creation
arr1 = array(3.142)
arr2 = array([[1, 2], [3, 4]])
print(arr1)
print(arr2)
但是运行给了我这个错误:
import blaze
File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/__init__.py", line 10, in <module>
from . import catalog
File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/__init__.py", line 4, in <module>
from . import catalog_config
File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/catalog_config.py", line 6, in <module>
from .catalog_dir import is_abs_bpath, CatalogCDir
File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/catalog_dir.py", line 5, in <module>
from .catalog_arr import load_blaze_array
File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/catalog_arr.py", line 9, in <module>
from datashape.type_equation_solver import matches_datashape_pattern
ImportError: No module named 'datashape.type_equation_solver'
但是,我可以导入datashape
,使用
python -c "import datashape"
当我尝试时conda install <pkgname>
,我得到满足的依赖关系。我认为这与这个问题有关,但我觉得这个建议难以理解。
任何帮助表示赞赏。