在 Windows 10 上安装 python 3.5 Scipy 包

标签 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).

如何解决这个问题?

谢谢。

最佳答案

如果可能的话,我建议通过轮子安装 - 它可以避免编译的需要,这在 Windows 上可能是一个很大的痛苦。您可能需要下载 scipy 所依赖的更多软件包。这里有一个很棒的车轮文件文件,由 Christoph Gohlke 提供:http://www.lfd.uci.edu/~gohlke/pythonlibs/

如果您下载了一个wheel,您可以像平常一样使用pip进行安装,但引用wheel文件名:

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

个人提示 - 保留您需要的车轮文件。托管在 pypi 上的通常是安全的,但在其他地方它们可能会消失和/或被更新的版本取代。一定要检查是否有较新的版本,但如果它们完全消失,您可能会处于尴尬的境地。

关于在 Windows 10 上安装 python 3.5 Scipy 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43337840/

相关文章:

python - 应为字符串参数,在 buffer.write 中得到 'bytes'

python - 为什么我的程序退出而不是永远运行

python - 我正在尝试实现 GridSearchCV 来调整 K 最近邻分类器的参数

python - 测试一个数组是否可以广播到一个形状?

python - 如何 mpf 一个数组?

python - scipy.stats.spearmanr : Warning: divide by zero encountered in divide

python - 如何修复 Tensorflow 中的 "ValueError: Operands could not be broadcast together with shapes (2592,) (4,)"?

python - 使用 scipy.integrate 积分向量场(一个 numpy 数组)

python - SciPy 的压缩距离矩阵的格式/结构稳定吗?

Python 元组超出范围