2015-04-12 6 views
25

पर ब्रूक इंस्टॉल जीसी के बाद गायब फोर्ट्रिन कंपाइलर के कारण अभी भी स्थापित नहीं हो सकता है। मैंने this answer को पढ़ा और उसका पालन किया है ताकि scipy/numpy/theano इंस्टॉल किया जा सके। हालांकि, यह अभी भी जीसीसी स्थापित करने के बाद लापरवाही फोरट्रान कंपाइलर की एक ही त्रुटि पर असफल रहा। जबकि होमब्रू ने जीसीसी -4.8 स्थापित किया, लेकिन उसने कोई gfortran या g95 कमांड इंस्टॉल नहीं किया। मैं समझ gfortran सिर्फ जीसीसी के एक synonymy हो सकता है, तो मैं एक सिमलिंकमैक ओएस एक्स

$ cd /usr/local/bin 
$ ln -s gcc-4.8 gfortran 
$ pip install scipy 

बनाने तो यह gfortran आदेश का पता लगाता है, लेकिन अभी भी कोई फोरट्रान संकलक

शिकायत
customize Gnu95FCompiler 
Found executable /usr/local/bin/gfortran 
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 G95FCompiler 
Could not locate executable g95 
customize PGroupFCompiler 
Could not locate executable pgfortran 
don't know how to compile Fortran code on platform 'posix' 
building 'dfftpack' library 
error: library dfftpack has Fortran sources but no Fortran compiler found 

मैं और क्या करना चाहिए?

+0

तुम सच में 'scipy' संकलित करने के लिए चाहते हैं या के रूप में के साथ' आप के लिए एक विकल्प anaconda' भेज दिया एक precompiled संस्करण का उपयोग कर रहा है? – cel

+2

gfortran कमांड स्वयं एक सामान्य बात कहता है जैसे जीसीसी करता है, लेकिन फिर यह फोरट्रान फ्रंटेंड को कॉल करता है और आपको इसे इंस्टॉल करना होगा। Symlink gfortran → जीसीसी पर्याप्त नहीं है। –

+0

क्या आपने 'gcc इंस्टॉल करें' किया था? http://stackoverflow.com/questions/26919450/can-not-install-gfortran-via-homebrew –

उत्तर

33

पाइप को अपग्रेड करके फिक्स्ड, भले ही मैंने उसी दिन पहली बार अपना पाइप/वर्चुअलनव इंस्टॉल किया हो।

(mypy)MAC0227: $ pip install --upgrade pip 
... 
(mypy)MAC0227: $ pip install theano 
/Users/me/.virtualenvs/mypy/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
    InsecurePlatformWarning 
Requirement already satisfied (use --upgrade to upgrade): theano in /Users/me/.virtualenvs/mypy/lib/python2.7/site-packages 
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.2 in /Users/me/.virtualenvs/mypy/lib/python2.7/site-packages (from theano) 
Collecting scipy>=0.11 (from theano) 
/Users/me/.virtualenvs/mypy/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
    InsecurePlatformWarning 
    Downloading scipy-0.15.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (19.8MB) 
    100% |████████████████████████████████| 19.8MB 23kB/s 
Installing collected packages: scipy 
Successfully installed scipy-0.15.1 
21

निम्नलिखित मेरे लिए काम किया:

sudo apt-get install gfortran

अपने सिस्टम पर

:

उबंटू 15.10 (लिनक्स 4.2.0-19-जेनेरिक # 23-उबंटू x86_64 x86_64 x86_64 जीएनयू/लिनक्स)

+3

ओपी ने ओएस एक्स – Blaszard

+0

के बारे में पूछा, वैसे भी, यह मेरे लिए पाइप को अपग्रेड करने के बजाय उबंटू पर काम करता था। –