2014-09-23 76 views
0

我想使用的easy_install Cygwin中安裝SciPy的(Win8-64),我有這樣那樣的錯誤:Cygwin的easy_install的SciPy的錯誤

$ easy_install scipy 
Searching for scipy 
Reading http://pypi.python.org/simple/scipy/ 
Best match: scipy 0.14.0 
Downloading https://pypi.python.org/packages/source/s/scipy/scipy-  0.14.0.zip#md5=7ee4fa9e756bab6b46b79f77c821cb68 
Processing scipy-0.14.0.zip 
Writing /tmp/easy_install-22pYld/scipy-0.14.0/setup.cfg 
Running scipy-0.14.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-22pYld/scipy-0.14.0/egg-dist-tmp-q32R1Y 
/usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1504: UserWarning: 
Atlas (http://math-atlas.sourceforge.net/) libraries not found. 
Directories to search for the libraries can be specified in the 
numpy/distutils/site.cfg file (section [atlas]) or by setting 
the ATLAS environment variable. 
warnings.warn(AtlasNotFoundError.__doc__) 
/usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1513: UserWarning: 
Blas (http://www.netlib.org/blas/) libraries not found. 
Directories to search for the libraries can be specified in the 
numpy/distutils/site.cfg file (section [blas]) or by setting 
the BLAS environment variable. 
warnings.warn(BlasNotFoundError.__doc__) 
/usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1516: UserWarning: 
Blas (http://www.netlib.org/blas/) sources not found. 
Directories to search for the sources can be specified in the 
numpy/distutils/site.cfg file (section [blas_src]) or by setting 
the BLAS_SRC environment variable. 
warnings.warn(BlasSrcNotFoundError.__doc__) 
merror: 
Blas (http://www.netlib.org/blas/) libraries not found. 
Directories to search for the libraries can be specified in the 
numpy/distutils/site.cfg file (section [blas]) or by setting 
the BLAS environment variable. 

我無法弄清楚我的owin什麼是錯的。幫助將在這裏討論。

我也想知道scipy的成功安裝是否會導致python2.7或python3的安裝庫,這兩者在我的PC(我都需要)中都有?

任何幫助? 在此先感謝!

我迄今所做的:

  • 通過SETUP.EXE(libgfortranlib,GCC-FORTRAN等)安裝所有FORTRAN庫

  • @abarnert的幫助後,

  • pip2.7安裝scipy
  • pip3.2安裝scipy

在這種類型的安裝過程中沒有遇到任何問題。

回答

2

末的錯誤似乎很清楚:

error: Blas (http://www.netlib.org/blas/) libraries not found.

它甚至會告訴你如何解決這個錯誤。除此之外,你想讓別人告訴你什麼?

可能有一個BLAS庫作爲Cygwin安裝程序的一部分。如果沒有,請轉到錯誤消息中鏈接的URL並自行下載BLAS。


同時,儘管這是一個完全獨立的問題,我會回答它:

I also wonder if the successful installation of scipy will result in installation libraries for python2.7 or for python3 both of which I have in me PC (I need both)?

這要看easy_install你正在運行。最簡單的做法是不要試圖猜測或弄清楚,只要明確地使用easy_install-2.7easy_install-3.4(或其中任何一個版本)即可。

但是,您可能不應該首先使用easy_install。使用pip,除非您有充分的理由不這樣做,正如Python Packaging User Guideofficial Python docs所建議的那樣。

+0

Thx,你是對的! – somename 2014-09-23 07:22:42