英特尔 DAAL python 错误
Posted
技术标签:
【中文标题】英特尔 DAAL python 错误【英文标题】:Intel DAAL python error 【发布时间】:2017-03-24 15:23:57 【问题描述】:英特尔数据分析加速库(英特尔 DAAL)已成功安装在我的 ubuntu 上。但是,在运行位于 compilers_and_libraries_2017/linux/daal/examples/python/source/distance 的示例时,出现以下错误。有人遇到过这个问题吗?
$ source activate intelpython
(intelpython) W2600CR:/compilers_and_libraries_2017/linux/daal/examples/python/source/distance$
$ python3.5
Python 3.5.2 |Intel Corporation| (default, Feb 5 2017, 09:07:18)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>>
(intelpython)$ :/compilers_and_libraries_2017/linux/daal/examples/python/source/distance$ python3.5 cos*.py
Traceback (most recent call last):
File "cos_dist_dense_batch.py", line 48, in <module>
DataSourceIface.doDictionaryFromContext
File "/media/liqisuccess/76F07852F0781A97/Ubuntu/App/Anaconda3/envs/intelpython/lib/python3.5/site-packages/daal/data_management/__init__.py", line 4540, in __new__
return FileDataSource_CSVFeatureManagerFloat64(*args)
File "/media/liqisuccess/76F07852F0781A97/Ubuntu/App/Anaconda3/envs/intelpython/lib/python3.5/site-packages/daal/data_management/__init__.py", line 3534, in __init__
this = _data_management.new_FileDataSource_CSVFeatureManagerFloat64(*args)
SystemError: Error on file open
【问题讨论】:
【参考方案1】:我遇到了同样的问题。深入样本源后,发现是csv文件路径所致。
只需 cd 到 compilers_and_libraries_2017/linux/daal/examples/python 并再次运行示例。
【讨论】:
以上是关于英特尔 DAAL python 错误的主要内容,如果未能解决你的问题,请参考以下文章
带有 scikit-learn 的英特尔 daal4py 分类器