Question

I'm trying to install glmnet using these instructions. When I run python setup.py and I choose the interactive option to build, I get the following Could not locate executable XXX errors. I've installed scipy and numpy via pip.

running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "glmnet._glmnet" sources
f2py options: []
  adding 'build/src.macosx-10.9-intel-2.7/fortranobject.c' to sources.
  adding 'build/src.macosx-10.9-intel-2.7' to include_dirs.
build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
running scons
--Return--
> /Users/rose/221/tagger/tagger/glmnet-python/setup.py(32)<module>()->None
Was it helpful?

Solution

The Could not locates aren't really errors. It's unlikely that a package would require you to have 5 different fortran compilers installed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top