須要預先安裝幾個庫:python
1 sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-dev ui
另外numpy, scipy在virtualenv中安裝時老是出錯,具體跟liblapack-dev, libblas-dev這些依賴包相關。目前尚未找到比較好的解決方案,官方推薦的安裝方法爲spa
1 sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose code
試了一下,在py3.4環境下安裝scipy很順利,只是須要的內存比較多,因此添加了2G的swap。blog