POSIX compliance and is not recommended.) (The secondĪlternative with the library as a separate argument is only for Search the library named library when linking. Here's why I think this might be the case. The libgfortran5 (or a more recent version, if available when you search) might be necessary.
$ cd /path/to/setup_install/setup_x86-64.exe -q -P wget # Note that mine is for the 64-bit version, and that
# This is what you used to install Cygwin the first time. # Get to where your setup executable lives. If you don't have apt-cyg yet, follow these instructions from another answer. $ apt-cyg install gcc-fortran libgfortran5 I'm also addressing a possible linkage issue. I suspect it is something with how/where I installed the compilers.īecause the installation from apt-cyg should be helpful in letting the system know where to look for the compilers.
Finally, test your installation.For me, it's more helpful to have executable code to go through the process, so I'm going to put some in. This should build NumPy without errors and install it to your site-packages directory. Then, (as of numpy rev 3726) all that's required is running: python setup.py installįrom the root NumPy source directory. # libguide40.lib : "Interface library for dynamic threading library"Ĭheck that the specified libraries can indeed be found by running: python setup.py configįrom the root NumPy source directory. # libguide.lib : "Static threading library" # libguide or libguide40? either seem to work:
# mkl_c_dll : "cdecl interface library for dynamic library" # mkl_c or mkl_c_dll? either seem to work:
Mkl_libs = mkl_ia32, mkl_c_dll, libguide40 Library_dirs = C:Program FilesIntelMKL9.0ia32lib Include_dirs = C:Program FilesIntelMKL9.0include # replace C:Program FilesIntelMKL9.0 with your Intel MKL install path # using Intel's Math Kernel Library for win32 Add the following to the file, substituting your MKL installation path where appropriate: # config file for building numpy on ia32 platform, Make sure you have a HOME user environment variable that points to your home directory (see Control Panel/System/Advanced/Environment Variables). Windows Explorer might not allow you to create a file starting with ".", so you may have to use the command line to rename it. Once you've checked out the source for NumPy, create an empty file called ".numpy-site.cfg" in your home directory (something like C:Documents and Settingsusername). The details of how I linked the lib are provided as below: Build NumPy I at first installed MKL library under windows.Then I tried to link MKL librarieswithcygwin by the way specified in.
I want to install a numpy (numerical python) package in Cygwin.numpy requires some libraries which can be obtained from MKL. Let me be more specific about my scenario. cygwin itself knows nothing about the paths for these compilers or cygwin, and may get in the way of using the Microsoft versions of certain tools. This allows you to use cygwin posix tools such as gnu make, with a standard Windows compiler. The usual way of using MKL with cygwin is to open up a command prompt windowin a Microsoft or Intel compiler installation, so that you use that compiler rather than one supplied for cygwin, then run your cygwin.bat to open a bash shell inside your Windows compiler environment. So, you can't install MKL "for cygwin." mingw gcc is not one of the compilers supported by MKL, although it may work. Gcc -mno-cygwin yourprogram.c mkl_intel_c.lib mkl_core.lib mkl_sequential.libĪssuming you have set the MKL include and library paths and use the MKL upper-case function names. As described hereit's possible the mingw compiler, invoked from a cygwin shellby gcc -mno-cygwin, may be able to create a standard Windows program a.exe, e.g.
It is not an emulator which would allow any use of software built for linux. You should first read up on cygwin, and adjust your interpretation of "works for me" to match theirs. You have left your question open to interpretation, but your own interpretation must be at variance with the design of these tools.