用于python 3.5的Windows上的SciPy安装

时间:2016-04-19 17:38:30

标签: python numpy scipy

我正在尝试以不同的方式安装scipy,但都失败了我

我有windows x64和python 3.5

我尝试下载scipy-0.17.0-cp35-none-win_amd64,scipy-0.17.0-cp35-none-win32,numpy-1.11.0 + mkl-cp35-cp35m-win32,numpy_1.11.0_mkl_cp35_cp35m_win_amd64 < / p>

它们都没有成功安装,我想修复它。无论如何不是使用Anaconda?

当我尝试pip install scipy时,这是我得到的错误:

Collecting scipy
  Using cached scipy-0.17.0.tar.gz
Installing collected packages: scipy
  Running setup.py install for scipy ... error
    Complete output from command c:\python35\python.exe -u -c "import setuptools
, tokenize;__file__='C:\\Users\\****\\AppData\\Local\\Temp\\pip-build-2kjh7_yz
\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\*****\App
Data\Local\Temp\pip-tsi_rnlj-record\install-record.txt --single-version-external
ly-managed --compile:
    lapack_opt_info:
    openblas_lapack_info:
      libraries openblas not found in ['c:\\python35\\lib', 'C:\\', 'c:\\python3
5\\libs']
      NOT AVAILABLE

    lapack_mkl_info:
    mkl_info:
      libraries mkl,vml,guide not found in ['c:\\python35\\lib', 'C:\\', 'c:\\py
thon35\\libs']
      NOT AVAILABLE

      NOT AVAILABLE

    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    c:\python35\lib\site-packages\numpy\distutils\system_info.py:633: UserWarnin
g: Specified path C:\projects\windows-wheel-builder\atlas-builds\atlas-3.11.38-s
se2-64\lib is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE

    atlas_3_10_info:
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE

    atlas_threads_info:
    Setting PTATLAS=ATLAS
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE

    atlas_info:
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE

    c:\python35\lib\site-packages\numpy\distutils\system_info.py:1542: UserWarni
ng:
        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__)
    lapack_info:
      libraries lapack not found in ['c:\\python35\\lib', 'C:\\', 'c:\\python35\
\libs']
      NOT AVAILABLE

    c:\python35\lib\site-packages\numpy\distutils\system_info.py:1553: UserWarni
ng:
        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__)
    lapack_src_info:
      NOT AVAILABLE

    c:\python35\lib\site-packages\numpy\distutils\system_info.py:1556: UserWarni
ng:
        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__)
      NOT AVAILABLE

    Running from scipy source directory.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\*****\AppData\Local\Temp\pip-build-2kjh7_yz\scipy\setup.py
", line 265, in <module>
        setup_package()
      File "C:\Users\*****\AppData\Local\Temp\pip-build-2kjh7_yz\scipy\setup.py
", line 262, in setup_package
        setup(**metadata)
      File "c:\python35\lib\site-packages\numpy\distutils\core.py", line 135, in
 setup
        config = configuration()
      File "C:\Users\*****\AppData\Local\Temp\pip-build-2kjh7_yz\scipy\setup.py
", line 182, in configuration
        config.add_subpackage('scipy')
      File "c:\python35\lib\site-packages\numpy\distutils\misc_util.py", line 10
03, in add_subpackage
        caller_level = 2)
      File "c:\python35\lib\site-packages\numpy\distutils\misc_util.py", line 97
2, in get_subpackage
        caller_level = caller_level + 1)
      File "c:\python35\lib\site-packages\numpy\distutils\misc_util.py", line 90
9, 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:\python35\lib\site-packages\numpy\distutils\misc_util.py", line 10
03, in add_subpackage
        caller_level = 2)
      File "c:\python35\lib\site-packages\numpy\distutils\misc_util.py", line 97
2, in get_subpackage
        caller_level = caller_level + 1)
      File "c:\python35\lib\site-packages\numpy\distutils\misc_util.py", line 90
9, 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

    ----------------------------------------
Command "c:\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\
\Users\\*****\\AppData\\Local\\Temp\\pip-build-2kjh7_yz\\scipy\\setup.py';exec(
compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record C:\Users\*****\AppData\Local\Temp\pip-tsi_
rnlj-record\install-record.txt --single-version-externally-managed --compile" fa
iled with error code 1 in C:\Users\*****\AppData\Local\Temp\pip-build-2kjh7_yz\
scipy\

1 个答案:

答案 0 :(得分:0)

1.你应该卸载numpy,使用命令&#39; pip uinstall numpy&#39;。 2.reinstall numpy by command&#39; pip uninstall +目录路径+ numpy_1.11.0_mkl_cp35_cp35m_win_amd64。 3.下载VC ++ 2015 REDISTRIBUTABLE由microsoft web.install它。 4.像2步一样安装scipy

抱歉,我的英语很糟糕,我可以帮你这样。