Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
424 Discussions

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

AlphaF20
New Contributor I
8,729 Views
 

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?

 

Thank you very much.

0 Kudos
1 Solution
JyothisV_Intel
Moderator
8,575 Views

Hi,

 

Sorry for the delay.

 

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

 

Additionally, the pre-built 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 instructions along with installation commands in the below links. Kindly note that if you have any other version of NumPy or SciPy installed, remove those first before installing.

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 (Linux version since you're using WSL) from the below link:

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

 

You can opt for either an online or offline mode of the install as per your choice. Once installed, you need to run the following commands to set the environment variables so that WSL loads Intel Python instead of the native Python automatically.

 

cd ~
echo 'source ~/intel/oneapi/setvars.sh' >> ~/.bashrc
source ~/.bashrc

 

 

All the above-mentioned options are available free of cost.

 

If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue.

 

Thank You!

 

Regards,

Jyothis V James

 

View solution in original post

0 Kudos
4 Replies
Nikky_P_Intel
Employee
8,684 Views

Hi, we have sent you a private message. Please check your inbox for further updates.




0 Kudos
JyothisV_Intel
Moderator
8,576 Views

Hi,

 

Sorry for the delay.

 

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

 

Additionally, the pre-built 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 instructions along with installation commands in the below links. Kindly note that if you have any other version of NumPy or SciPy installed, remove those first before installing.

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 (Linux version since you're using WSL) from the below link:

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

 

You can opt for either an online or offline mode of the install as per your choice. Once installed, you need to run the following commands to set the environment variables so that WSL loads Intel Python instead of the native Python automatically.

 

cd ~
echo 'source ~/intel/oneapi/setvars.sh' >> ~/.bashrc
source ~/.bashrc

 

 

All the above-mentioned options are available free of cost.

 

If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue.

 

Thank You!

 

Regards,

Jyothis V James

 

0 Kudos
AlphaF20
New Contributor I
8,549 Views

thank you so much!!

0 Kudos
JyothisV_Intel
Moderator
8,536 Views

Hi,


Thanks for accepting our solution.


If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Jyothis V James


0 Kudos
Reply