在ubuntu下自带的python除了一些基本库外,不会包含一些高大上的库,比如NumPy、SciPy、SymPy、matplotlib、Traits、TraitsUI、Chaco、TVTK、Mayavi、VPython、OpenCV。
下面介绍如何安装NumPy、SciPy、SymPy,matplotlib,PyQt4和Spyder
依次敲击一下命令:
sudo apt-get install python-scipy
sudo apt-get install python-numpy
sudo apt-get install python-matplotlib
sudo apt-get install python-sympy
sudo apt-get install python-qt4
sudo apt-get install qt4-designer
sudo apt-get install pyqt4-dev-tools
sudo apt-get install python-qt4-doc (qt4的文档,安装后位于/usr/share/doc/python-qt4-doc中)
sudo apt-get install spyder
之后进入python后就可以import这些库了。
未完,待更新!