2013-12-10 24 views
2

我正在嘗試使用these instructions安裝glmnet。當我運行python setup.py並選擇要構建的交互選項時,出現以下Could not locate executable XXX錯誤。我已經通過pip安裝了scipy和numpy。找不到可執行文件f95,f77,xlf,ifc,g77

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 
+1

它看起來像它發現'gfortran'並試圖使用它。你確定這是問題嗎? – mgilson

+1

更重要的是:你所面臨的實際問題是什麼?如果你只是在日誌中看到可怕的東西,但一切正常......那裏沒有任何錯誤,所以你沒事。如果稍後有些事情正在發生,請告訴我們什麼事情正在破裂(您可能還想告訴我們您的平臺以及Python/gfortran/scipy /等的版本,以及您從哪裏獲得Python - 隨附於您的操作系統,從Python.org安裝,手動構建,安裝與包管理器X,...) – abarnert

+0

這是我正面臨的實際問題:http://stackoverflow.com/questions/20459390/python-glmnet-no-module-named-glmnet。我運行的是Mac OS,一個星期前我自己編譯了Python,我認爲它帶有巨大的功能選項。我的scipy和numpy版本是最新版本的,我也安裝了gfortran。 –

回答

1

Could not locate s是不是真的錯誤。一個軟件包不太可能要求您安裝5個不同的Fortran編譯器。

相關問題