Intel® Distribution for Python*
Support and discussions for achieving faster Python* applications and core computational packages.
393 Discussions

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

AlphaF20
New Contributor I
4,984 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.ht...

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
4,830 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#pyth...

 

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

4 Replies
Nikky_P_Intel
Employee
4,939 Views

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




JyothisV_Intel
Moderator
4,831 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#pyth...

 

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

 

AlphaF20
New Contributor I
4,804 Views

thank you so much!!

JyothisV_Intel
Moderator
4,791 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


Reply