天天看點

玩轉Python大資料分析 《Pytho

作者推薦使用EPD作為學習本書各章節的學習環境,但登入到EPD網站後發現EPD已經更新為canocy了,當然可以使用canocy,

但是有個授權期限問題,實際上EPD不過是Scipy、Numpy等工具包的一個合集,學習這本書無非需要使用Numpy、Scipy、Pandas,

這些都可以自己根據階段需求自己來安裝即可,我在讀這本書的時候就自己安裝上述各工具包,現總結一下如何在Ubuntu12.04下如

何安裝學習此書的開發環境。

1 安裝GCC

sudo aptitude install gcc

2 安裝NumPy

安裝說明網頁

http://www.scipy.org/install.html安裝指令(numpy、scipy、ipython、malplotlib等)

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-sympy python-nose

3M帶寬安裝需要30分鐘吧

3 安裝pandas

安裝說明網頁

http://pandas.pydata.org/pandas-docs/stable/install.html安裝指令

sudo apt-get install python-pandas

4測試

1)ipython notebook --pylab inline (啟動網頁版的IPython(notebook))

2)點選 new notebook

3) 鍵入

In [1]:import pandas (shift+Enter)  In [2]:plot(arange(10))(shift+Enter)  Out[2]:           

複制