直接使用pip更新目前遇到了错误:
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
这是因为安装scipy需要安装Blas和lapack, 它们是线性代数必备的库。
Blas and lapack are linear algebra packages which will need to be installed before scipy will work
可以用这种方法:
sudo apt-get install gfortran libopenblas-dev liblapack-dev
从源码编译的话,参考:
http://faculty.washington.edu/rjl/uwamath583s11/sphinx/_build/html/lapack_install.html
随后安装scipy,就可以用pip直接安装了,这里我是更新:
sudo pip install -U scipy
参考文献
http://stackoverflow.com/questions/7496547/does-python-scipy-need-blas