win64 python2.7 numpy 安裝

在win64 python2.7環境中,安裝numpy會發現, 直接使用「pip install numpy」沒法安裝numpy。html

參考相關資料:Windows7 x64安裝numpy和scipy 總結了本身的安裝過程以下:python

在加州大學歐文分校(University of California, Irvine)LFD實驗室(The Laboratory for Fluorescence Dynamics)的Christoph Gohlke在其我的主頁上提供了非官方的Windows源:http://www.lfd.uci.edu/~gohlke/pythonlibs/ 。shell

一、下載numpy

 http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy 中下載對應版本win_amd64(win64)、cp27(python2.7)安裝:python2.7

由於文件後綴名爲".whl",因此,咱們須要先安裝wheel。this

二、安裝wheel

C:\Users\Administrator>pip install wheel

三、安裝numpy

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

安裝過程當中,若是出現錯誤信息以下:
spa

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...」解決。.net

四、驗證是否安裝成功code

>>> from numpy import *

若是沒報錯,則,安裝成功。htm

同理安裝matplotlib。blog

相關文章
相關標籤/搜索