I'm trying to install pyOpt in Python and I got this error :
error: library algencan has Fortran sources but no Fortran compiler found
I'm using Anaconda on windows 7, I tried to install "Microsoft Visual C++ Compiler for Python 2.7", but I got the same error.
The gfortran compiler is part of the standard “gcc” compiler package, and may be pre-installed on recent unix systems. Check the version using “gfortran –version”. To install from the standard repository use: “sudo apt-get update; sudo apt-get install gfortran”
To add it go to Start>; right click Computer and select Properties; go to Advanced System Settings; select the Advanced tab; select Environment Variables (the bottom one); scroll down in the bottom menu until you find the Path variable and then add the MinGW\bin directory at the end (be careful not to delete your ...
You should install a Fortran compiler, e.g. gfortran
(via MinGW/Cygwin on Windows). See here for details. A C++ compiler won't help here.
MinGW includes gfortran
as part of the distribution, with Cygwin, you need to install the package gcc-fortran
.
After the installation, add the path to its binary to the system PATH
.
Alternatively, you can purchase a commercial Fortran Compiler, e.g. from Intel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With