win64 python2.7 numpy 安装

来源:互联网 发布:郑州seo技术 编辑:程序博客网 时间:2024/05/29 02:58

转自:https://my.oschina.net/HIJAY/blog/485063?p=1

在win64 python2.7环境中,安装numpy会发现, 直接使用“pip install numpy”无法安装numpy。

参考相关资料:Windows7 x64安装numpy和scipy 总结了自己的安装过程如下:

在加州大学欧文分校(University of California, Irvine)LFD实验室(The Laboratory for Fluorescence Dynamics)的Christoph Gohlke在其个人主页上提供了非官方的Windows源:http://www.lfd.uci.edu/~gohlke/pythonlibs/ 。

1、下载numpy

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

因为文件后缀名为".whl",所以,我们需要先安装wheel。

2、安装wheel

C:\Users\Administrator>pip install wheel

3、安装numpy

C:\Users\Administrator>pip install C:\python-tools\numpy-1.9.2+mkl-cp27-none-win_amd64.whl

安装过程中,如果出现错误信息如下:

C:\Python27\Scripts>pip install "numpy-1.9.2+mkl-cp26-none-win_amd64.whl"numpy-1.9.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platform.

则,可以参照“python2.7安装numpy报错:is not a supported wheel on...”解决。

4、验证是否安装成功

>>> from numpy import *

如果没报错,则,安装成功。

同理安装matplotlib。

0 0
原创粉丝点击