在windows中安裝numpy,scipy和matplotlib

來源:互聯網
上載者:User

標籤:windows numpy scipy matplotlib

系統windows 7 64位 

Python 2.7.10,本來裝的是64位版,但是numpy和scipy沒找到64位版本,下載了32位版,安裝時候會提示python27 is not found in the regestry,所以把python改成了32位版再安裝就好了。

python27 32位版

https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi

Numerical Python

http://cznic.dl.sourceforge.net/project/numpy/NumPy/1.8.1/numpy-1.8.1-win32-superpack-python2.7.exe


Scipy

http://jaist.dl.sourceforge.net/project/scipy/scipy/0.14.1/scipy-0.14.1-win32-superpack-python2.7.exe


matplotlib

https://pypi.python.org/packages/2.7/m/matplotlib/matplotlib-1.4.3.win32-py2.7.exe#md5=f43c20480a1673185afefc7d4848a1d2


下載之後安裝,都是exe包,簡單方便。

測試numpy

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/6D/97/wKiom1VmyuvhVJnBAAGfpVF3pIw314.jpg" title="QQ20150528155348.png" alt="wKiom1VmyuvhVJnBAAGfpVF3pIw314.jpg" />

看起來沒有問題

測試matplotlib

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/6D/92/wKioL1VmzKjxlpX-AADEb_2GSXY986.jpg" title="QQ20150528160006.png" alt="wKioL1VmzKjxlpX-AADEb_2GSXY986.jpg" />

納尼  出現了問題啊 怎麼回事


在這裡找到這個包

https://pypi.python.org/pypi/six/

下載了six-1.9.0.tar.gz

解壓,將裡面的six.py檔案放到c盤python27目錄的Lib下。這樣python就能直接使用這個six.py庫了。

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/6D/97/wKiom1VmzCHxsC2YAADNuFqXTfM337.jpg" title="QQ20150528160430.png" alt="wKiom1VmzCHxsC2YAADNuFqXTfM337.jpg" />

怎麼回事啊,還是有問題,繼續解決

https://pypi.python.org/pypi/python-dateutil/

下載解壓 進入目錄執行 python setup.py install

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/6D/93/wKioL1Vm0KDgl_ofAADguWHP6DU945.jpg" title="QQ20150528161548.png" alt="wKioL1Vm0KDgl_ofAADguWHP6DU945.jpg" />

尼瑪 怎麼還是缺啊

pyparsing

http://softlayer-sng.dl.sourceforge.net/project/pyparsing/pyparsing/pyparsing-2.0.3/pyparsing-2.0.3.win32-py2.7.exe

下載安裝完 終於成功了

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/6D/93/wKioL1Vm0aODLL4tAABKN0tUVdA202.jpg" title="QQ20150528162118.png" alt="wKioL1Vm0aODLL4tAABKN0tUVdA202.jpg" />

調用import matplotlib.pyplot as plt又出問題了 奶奶個腿的

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/6D/94/wKioL1Vm5J7TiMTcAALOgEofvvM261.jpg" title="QQ20150528174129.png" alt="wKioL1Vm5J7TiMTcAALOgEofvvM261.jpg" />

看起來還是版本不匹配的問題造成的,是不能在64位機上使用嗎?

等我換個32位機測試一下再來解答。

在windows中安裝numpy,scipy和matplotlib

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.