1、普通环境安装扩展
sudo apt-get install python-scipy
sudo apt-get install python-numpy
sudo apt-get install python-matplotlib
2、在Python虚拟环境中安装扩展
virtualenv中安装numpy,scipy,matplotlib
pip install numpy
pip install scipy
pip install matplotlib
必先安装scipy再安装matplotlib