首页 > 编程语言 > 详细

win64 python2.7 numpy 安装

时间:2015-07-29 12:26:40      阅读:379      评论:0      收藏:0      [点我收藏+]

在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。


win64 python2.7 numpy 安装

原文:http://my.oschina.net/HIJAY/blog/485063

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!