在Windows 10上安装Scipy软件包

时间:2017-04-11 06:00:28

标签: python numpy scipy pip python-3.5

在Windows 10中作为管理员在命令提示符下我想安装“scipy”。但是在这个命令之后:pip install sctipy我遇到了这些错误:

    C:\WINDOWS\system32>pip install scipy
Collecting scipy
  Using cached scipy-0.19.0.zip
                                                                                Building wheels for collected packages: scipy
  Running setup.py bdist_wheel for scipy ... error
  Complete output from command c:\users\administrator\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-build-e1t3tsx1\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ADMINI~1\AppData\Local\Temp\tmp_67ezs94pip-wheel- --python-tag cp35:
  lapack_opt_info:
  lapack_mkl_info:
    libraries mkl_rt not found in ['c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\lib', 'C:\\', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\libs']
    NOT AVAILABLE

  openblas_lapack_info:
    libraries openblas not found in ['c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\lib', 'C:\\', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\libs']
    NOT AVAILABLE

  c:\users\administrator\appdata\local\programs\python\python35-32\lib\site-packages\numpy\distutils\system_info.py:572: 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.
    self.calc_info()
    NOT AVAILABLE


  `setup.py clean` is not supported, use one of the following instead:

    - `git clean -xdf` (cleans all files)
    - `git clean -Xdf` (cleans all versioned files, doesn't touch
                        files that aren't checked into the git repo)

  Add `--force` to your command to use it anyway if you must (unsupported).

我如何解决这个问题?

感谢。

2 个答案:

答案 0 :(得分:1)

我想如果你重新安装你的python设置工具,它将解决错误:

black

答案 1 :(得分:1)

如果可能的话,我建议通过滚轮进行安装 - 它避免了需要编译,在Windows上,这可能是一个主要的痛苦。您可能需要下载scipy所依赖的其他软件包。 Christop Gohlke提供了一个很好的轮文件存档:http://www.lfd.uci.edu/~gohlke/pythonlibs/

如果您下载了一个滚轮,您可以像往常一样使用pip进行安装,但需要参考滚轮文件名:

pip install SomePackage-1.0-py2.py3-none-any.whl

个人提示 - 保持您需要的轮子文件。在pypi上托管的通常是安全的,但在其他地方它们可能会消失和/或被更新的版本所取代。通过各种方式检查更新的版本,但如果它们完全消失,你可能会处于尴尬的位置。