win64 python2.7 numpy 安装

转自: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 platfor
m.

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

4、验证是否安装成功

>>> from numpy import *

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

同理安装matplotlib。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值