2016-03-08 157 views
0

我在Windows 10 64bit上使用activestate python 2.7.10 32bit。 我安裝了numpy,它的工作,但scipy讓我頭痛。scipy安裝錯誤

我試圖pypm安裝scipy後面https://code.activestate.com/pypm/scipy/ 但它給CRC校驗錯誤。

當我點子安裝scipy,它給人的錯誤:

Downloading/unpacking scipy 
    Running setup.py (path:c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py) egg_info for package scipy 

    warning: no previously-included files matching '*_subr_*.f' found under directory 'scipy\linalg\src\id_dist\src' 
    no previously-included directories found matching 'benchmarks\env' 
    no previously-included directories found matching 'benchmarks\results' 
    no previously-included directories found matching 'benchmarks\html' 
    no previously-included directories found matching 'benchmarks\scipy' 
    no previously-included directories found matching 'scipy\special\tests\data\boost' 
    no previously-included directories found matching 'scipy\special\tests\data\gsl' 
    no previously-included directories found matching 'doc\build' 
    no previously-included directories found matching 'doc\source\generated' 
    no previously-included directories found matching '*\__pycache__' 
    warning: no previously-included files matching '*~' found anywhere in distribution 
    warning: no previously-included files matching '*.bak' found anywhere in distribution 
    warning: no previously-included files matching '*.swp' found anywhere in distribution 
    warning: no previously-included files matching '*.pyo' found anywhere in distribution 
Installing collected packages: scipy 
    Running setup.py install for scipy 
    lapack_opt_info: 
    lapack_mkl_info: 
    mkl_info: 
     libraries mkl,vml,guide not found in [] 
     NOT AVAILABLE 

     NOT AVAILABLE 

    atlas_threads_info: 
    Setting PTATLAS=ATLAS 
    numpy.distutils.system_info.atlas_threads_info 
     NOT AVAILABLE 

    atlas_info: 
    numpy.distutils.system_info.atlas_info 
     NOT AVAILABLE 

    lapack_info: 
     libraries lapack not found in [] 
     NOT AVAILABLE 

    lapack_src_info: 
     NOT AVAILABLE 

     NOT AVAILABLE 

    C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:564: UserWarning: Specified path /home/apy/atlas/lib is invalid. 
     warnings.warn('Specified path %s is invalid.' % d) 
    C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:564: UserWarning: Specified path /home/apy/atlas/include is invalid. 
     warnings.warn('Specified path %s is invalid.' % d) 
    C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:1408: 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__) 
    C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:1419: UserWarning: 
     Lapack (http://www.netlib.org/lapack/) libraries not found. 
     Directories to search for the libraries can be specified in the 
     numpy/distutils/site.cfg file (section [lapack]) or by setting 
     the LAPACK environment variable. 
     warnings.warn(LapackNotFoundError.__doc__) 
    C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:1422: UserWarning: 
     Lapack (http://www.netlib.org/lapack/) sources not found. 
     Directories to search for the sources can be specified in the 
     numpy/distutils/site.cfg file (section [lapack_src]) or by setting 
     the LAPACK_SRC environment variable. 
     warnings.warn(LapackSrcNotFoundError.__doc__) 
    Running from scipy source directory. 
    Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py", line 265, in <module> 
     setup_package() 
     File "c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py", line 262, in setup_package 
     setup(**metadata) 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\core.py", line 152, in setup 
     config = configuration() 
     File "c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py", line 182, in configuration 
     config.add_subpackage('scipy') 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 1003, in add_subpackage 
     caller_level = 2) 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 972, in get_subpackage 
     caller_level = caller_level + 1) 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 909, in _get_configuration_from_setup_py 
     config = setup_module.configuration(*args) 
     File "scipy\setup.py", line 15, in configuration 
     config.add_subpackage('linalg') 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 1003, in add_subpackage 
     caller_level = 2) 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 972, in get_subpackage 
     caller_level = caller_level + 1) 
     File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 909, in _get_configuration_from_setup_py 
     config = setup_module.configuration(*args) 
     File "scipy\linalg\setup.py", line 20, in configuration 
     raise NotFoundError('no lapack/blas resources found') 
    numpy.distutils.system_info.NotFoundError: no lapack/blas resources found 
    Complete output from command C:\Python27\python2.7.exe -c "import setuptools, tokenize;__file__='c:\\users\\kwan\\appdata\\local\\temp\\pip_build_KWan\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\kwan\appdata\local\temp\pip-7fm9d5-record\install-record.txt --single-version-externally-managed --compile: 
    lapack_opt_info: 

lapack_mkl_info: 

mkl_info: 

    libraries mkl,vml,guide not found in [] 

    NOT AVAILABLE 



    NOT AVAILABLE 



atlas_threads_info: 

Setting PTATLAS=ATLAS 

numpy.distutils.system_info.atlas_threads_info 

    NOT AVAILABLE 



atlas_info: 

numpy.distutils.system_info.atlas_info 

    NOT AVAILABLE 



lapack_info: 

    libraries lapack not found in [] 

    NOT AVAILABLE 



lapack_src_info: 

    NOT AVAILABLE 



    NOT AVAILABLE 



C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:564: UserWarning: Specified path /home/apy/atlas/lib is invalid. 

    warnings.warn('Specified path %s is invalid.' % d) 

C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:564: UserWarning: Specified path /home/apy/atlas/include is invalid. 

    warnings.warn('Specified path %s is invalid.' % d) 

C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:1408: 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__) 

C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:1419: UserWarning: 

    Lapack (http://www.netlib.org/lapack/) libraries not found. 

    Directories to search for the libraries can be specified in the 

    numpy/distutils/site.cfg file (section [lapack]) or by setting 

    the LAPACK environment variable. 

    warnings.warn(LapackNotFoundError.__doc__) 

C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\system_info.py:1422: UserWarning: 

    Lapack (http://www.netlib.org/lapack/) sources not found. 

    Directories to search for the sources can be specified in the 

    numpy/distutils/site.cfg file (section [lapack_src]) or by setting 

    the LAPACK_SRC environment variable. 

    warnings.warn(LapackSrcNotFoundError.__doc__) 

Running from scipy source directory. 

Traceback (most recent call last): 

    File "<string>", line 1, in <module> 

    File "c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py", line 265, in <module> 

    setup_package() 

    File "c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py", line 262, in setup_package 

    setup(**metadata) 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\core.py", line 152, in setup 

    config = configuration() 

    File "c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy\setup.py", line 182, in configuration 

    config.add_subpackage('scipy') 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 1003, in add_subpackage 

    caller_level = 2) 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 972, in get_subpackage 

    caller_level = caller_level + 1) 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 909, in _get_configuration_from_setup_py 

    config = setup_module.configuration(*args) 

    File "scipy\setup.py", line 15, in configuration 

    config.add_subpackage('linalg') 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 1003, in add_subpackage 

    caller_level = 2) 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 972, in get_subpackage 

    caller_level = caller_level + 1) 

    File "C:\Users\KWan\AppData\Roaming\Python\Python27\site-packages\numpy\distutils\misc_util.py", line 909, in _get_configuration_from_setup_py 

    config = setup_module.configuration(*args) 

    File "scipy\linalg\setup.py", line 20, in configuration 

    raise NotFoundError('no lapack/blas resources found') 

numpy.distutils.system_info.NotFoundError: no lapack/blas resources found 

---------------------------------------- 
Cleaning up... 
Command C:\Python27\python2.7.exe -c "import setuptools, tokenize;__file__='c:\\users\\kwan\\appdata\\local\\temp\\pip_build_KWan\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\kwan\appdata\local\temp\pip-7fm9d5-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\kwan\appdata\local\temp\pip_build_KWan\scipy 
Storing debug log for failure in C:\Users\KWan\pip\pip.log 
+0

爲什麼不安裝一個帶有scipy的Python發行版嗎? http://www.scipy.org/install.html – cfh

+0

這也是一個選項。謝謝 – Kwan

回答

0

如果你不想使用它自帶的SciPy的,你可以從here下載二進制一個Python分佈。 爲32位,蟒蛇2.7您需要:SciPy的-0.17.0或更新-cp27-NONE-win32.whl

這是一個輪子包,你可以安裝:

pip install scipy-0.17.0-cp27-none-win32.whl 
+0

Thx Maecky的回答。我收到消息說點燃看起來像一個文件名,但不存在。我在哪裏可以找到whl文件和它應該去的目錄? – Kwan

+0

您將* .whl下載到您的計算機(不管在哪裏,只需記住目錄)。 pip.exe位於你的Python目錄中。在我的電腦上它是C:\ Python27 \ Scripts \ pip.exe - 你只需執行它,就像我在我的答案中提到的那樣... pip.exe安裝C:\ pathToYourDownload \ scipy-0.17.0-cp27-none- win32.whl – Maecky

+0

非常感謝你的回答。有效。對此,我真的非常感激。 – Kwan