[SciPy-User] Install Scipy with Anaconda's MKL libraries
David Hagen
david at drhagen.com
Sat May 13 07:50:51 EDT 2017
I uninstalled all versions of MSVS and installed Visual Studio 2015 update
3. This did not fix anything, but at least I ruled out conflicts there.
To get past the NoneType error from my previous message I had to fix a bug
in Numpy; namely, in the file
numpy\distutils\msvc9compiler.py
the _merge function fails if old is None. I merely swap the two `if`
statements and it got past. I will submit a pull request.
Then the installer couldn't find icl.exe. I also had to add this to my PATH
environment variable:
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.0.065\windows\bin\intel64
Then I got this error
LINK : fatal error LNK1104: cannot open file 'libiomp5md.lib'
which I tracked down to MPI. The instructions here
<https://software.intel.com/en-us/articles/building-numpyscipy-with-intel-mkl-and-intel-fortran-on-windows>
had
told me to add several compiler options in numpy/distutils/intelccompiler.py,
one of which was openmp. Once I reverted the compiler options to their
original state, this error went away.
Then I got this error
LINK : fatal error LNK1104: cannot open file 'libmmd.lib'
I tracked this down to the compiler libraries not be on the library path so
I added this to the LIB environment variable:
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.0.065\windows\compiler\lib\intel64
Finally Numpy installed and imports.
But while it was nice to learn how to install Numpy from source, the main
goal was to install Scipy from source. I thought that installing Numpy from
source would fix my earlier problems with unresolved external _gfortran
symbols. Alas, I still get this error while installing Scipy:
building 'scipy.integrate._quadpack' extension
compiling C sources
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.0.065\windows\bin\intel64\icl.exe
/c /nologo /O3 /MD /W3 /Qstd=c99 -DSCIPY_MKL_H -DHAVE_CBLAS -
Iscipy\_lib\src -I"C:\Program Files
(x86)\IntelSWTools\parallel_studio_xe_2018.0.019\compilers_and_libraries_2018\windows\mkl\include"
-IC:\Anaconda3\envs\numpy
_source\lib\site-packages\numpy-1.12.1-py3.6-win-amd64.egg\numpy\core\include
-IC:\Anaconda3\envs\numpy_source\include
-IC:\Anaconda3\envs\numpy_source\include
/Tcscipy\integrate\_quadpackmodule.c
/Fobuild\temp.win-amd64-3.6\Release\scipy\integrate\_quadpackmodule.obj
could not find library 'quadpack' in directories ['C:\\Program Files
(x86)\\Inte
lSWTools\\parallel_studio_xe_2018.0.019\\compilers_and_libraries_2018\\windows\\
mkl\\lib\\intel64']
...
Creating library
build\temp.win-amd64-3.6\Release\scipy\integrate\_quadpack.c
p36-win_amd64.lib and object
build\temp.win-amd64-3.6\Release\scipy\integrate\_quadpack.cp36-win_amd64.exp
mach.lib(d1mach.o) : error LNK2019: unresolved external symbol
_gfortran_st_write referenced in function d1mach_
mach.lib(d1mach.o) : error LNK2019: unresolved external symbol
_gfortran_st_write_done referenced in function d1mach_
mach.lib(d1mach.o) : error LNK2019: unresolved external symbol
_gfortran_stop_numeric_f08 referenced in function d1mach_
mach.lib(d1mach.o) : error LNK2019: unresolved external symbol
_gfortran_transfer_character_write referenced in function d1mach_
mach.lib(d1mach.o) : error LNK2019: unresolved external symbol
_gfortran_transfer_integer_write referenced in function d1mach_
mach.lib(d1mach.o) : error LNK2019: unresolved external symbol
_gfortran_stop_string referenced in function d1mach_
build\lib.win-amd64-3.6\scipy\integrate\_quadpack.cp36-win_amd64.pyd :
fatal error LNK1120: 6 unresolved externals
*What does this even mean?*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20170513/3a76c8ac/attachment.html>
More information about the SciPy-User
mailing list