Intel® oneAPI Data Analytics Library
Learn from community members on how to build compute-intensive applications that run efficiently on Intel® architecture.

Problem installing DAAL-Python

DOjik
Beginner
735 Views

Hardware: Xeon Phi

OS: CentOS

From DAAL home:

sudo python setup.py install
Traceback (most recent call last):
  File "setup.py", line 34, in <module>
    daal_root=os.environ['DAALROOT']
  File "/usr/lib64/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'DAALROOT'

 

0 Kudos
2 Replies
Zhen_Z_Intel
Employee
735 Views

Hi David,

You get this error message because you didn't source the path of env variable "DAALROOT", please use following command first:

source /opt/intel/compilers_and_libraries_<version>/linux/daal/bin/daalvars.sh <ia32|intel64>

and then, use python ./setup.py --help-command to know how to write command to install; Or you could use Intel distribution for python to install DAAL by following this article "How to Install the Python* Version of Intel® DAAL in Linux*". Thanks.

Best regards,
Fiona

0 Kudos
Abhishek_S_6
Beginner
735 Views

Hey David

Considering you have given the path of environment variable "daalvars.sh", try installing setup.py after changing yourself to root. Hope it would work!

0 Kudos
Reply