Windows环境Python2.7安装Scipy

    xiaoxiao2022-06-22  20

    官网发现安装scipy前需要numpy+mkl

    SciPy is software for mathematics, science, and engineering. Requires numpy+mkl. Install numpy+mkl before installing scipy

    1.下载Numpy

    在 http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy 中下载对应版本win_amd64(win64)、cp27(python2.7)安装

    2.安装wheel

    因为后缀名是.whl,所以要先安装wheel 

    C:\Users\Administrator>pip install wheel

    3.安装numpy+mkl

    C:\Users\Administrator>pip install C:\python-tools\numpy-1.9.2+mkl-cp27-none-win _amd64.whl 根据安装包所在位置改变命令中的目录

    如果事先用pip install numpy安装了numpy 建议先卸载 pip uninstall numpy

    4.验证上一步安装是否成功

    pip list 出现numpy(1.11.1+mkl) 则成功安装

    5.安装scipy

    在http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy下载对应版本,安装过程与3类似。

    转载请注明原文地址: https://ju.6miu.com/read-1122900.html

    最新回复(0)