gfortran compiler for the scikits.bvp_solver

453 views Asked by At

my version for the Enthought Canopy python is 2.7.6, 64-bit. I am trying to install the scikits.bvp_solver on a windows 8.1 device by following the tutorial.

I have the easy_install ready, and downloaded the MinGW with gfortran(here), I tried both versions gcc-5.1.0-64.exe, and gcc-5.1.0-32.exe.

Then I proceeded to the second step, namely compiling from source using python setup.py config --compiler=mingw32 build --compiler=mingw32 install, the error message from cmd is

File "c:\users\xxx\enthought\canopy\user\lib\site-packages\ numpy\distutils\fcompiler\gnu.py", line 337, in get_libraries raise NotImplementedError("Only MS compiler supported with gfortran on win64 ")

NotImplementedError: Only MS compiler supported with gfortran on win64

the system path I specify is C:\Rtools\gcc-4.6.3\bin, C:\Rtool\gcc-4.6.3\libexec\gcc\x86_64-pc-mingw32\5.1.0.

As someone in the google group mentioned to me that this should be a issue related to numpy and I should take a look of this note, my error code is almost the same as his. But I do not figure out how him resolved his issue. So any comments are welcome.

enter image description here

1

There are 1 answers

7
paisanco On

First, if you did not already, get the package for scikits.bvp_solver as well. They recommended easy_install at the tutorial link for scikits.bvp_solver but you may have to set easy_install up as well depending on your python configuration.

Next, choose the 64-bit or 32-bit mingw gfortran compiler to match based on if your python distribution is 64 or 32 bit.

Next, Are you sure you specified the path to the setup.py file correctly?

Either

1) cd to the directory containing setup.py (this may vary on your system, the example C:\directory_where_it_is below is just a placeholder)

cd C:\directory_where_it_is

before typing,

python setup.py config --compiler=mingw32 build --compiler=mingw32 install

or

2) Specify the directory where setup.py is in the command line if running the prompt from some other directory

python C:\directory_where_it_is\setup.py config --compiler=mingw32 build --compiler=mingw32 install

Finally it may be necessary to simply comment out the code for that exception in setup.py and attempt the build, in a similar way to the procedure in this previous post