AlphaF20
AlphaF20

Reputation: 603

raise RuntimeError(f'Cannot parse version {FULLVERSION}') in install MKL with numpy from WSL

I tried to link MKL with numpy in Windows subsystem Linux https://www.intel.com/content/www/us/en/developer/articles/technical/build-numpy-with-mkl-and-icc.html

In step 4, I modified site.cfg, numpy/distutils/intelccompiler.py, and /numpy /distutil /fcompiler /intel.py,

in python setup.py config --compiler=intelem build_clib --compiler=intelem build_ext --compiler=intelem install

I got

Traceback (most recent call last):
 File "setup.py", line 60, in <module>
   raise RuntimeError(f'Cannot parse version {FULLVERSION}')
RuntimeError: Cannot parse version 0+unknow

Do I have to install ifort to use numpy with MKL? How to solve the above error message?

Upvotes: 2

Views: 7785

Answers (1)

The documentation that you are referring to is an outdated one. Intel is currently including Intel MKL optimized packages along with Intel Distribution for Python.

Prebuilt packages of Intel MKL optimized NumPy and SciPy are available to use through pip and conda channels. You could install the latest versions of these packages with pip/conda package manager if you have either of them installed. Please find the multiple options available, with installation commands in the below links:

https://anaconda.org/intel/scipy

https://anaconda.org/intel/numpy

Alternatively, you could also get these packages along with other Intel optimized python packages by downloading and installing the standalone Intel Distribution for Python or the complete Intel oneAPI Base Toolkit (which includes Intel Distribution for Python along with other Intel optimized tools) from the below links:

https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#python

https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit.html

All the above-mentioned options are available free of cost. Since you are installing inside Windows Subsystem for Linux, make sure to download and install the Linux versions of Intel Distribution for Python or Intel oneAPI Base Toolkit inside the WSL shell.

Upvotes: 2

Related Questions