0

英特尔数据分析加速库(英特尔 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
4

1 回答 1

2

我遇到了同样的问题。在深入研究示例源后,我发现这是由于 csv 文件路径所致。

只需 cd 到 compilers_and_libraries_2017/linux/daal/examples/python 并再次运行示例。

于 2017-04-27T08:15:26.040 回答