Ubuntu下安装了两个版本的Python,分别是Python2.7与Python3.4,所以在安装Numpy与Matplotlib时要注意版本的对应。
(1)Python2.7对应的Numpy与Matplotlib安装:
“sudo apt-get install python-numpy”
“sudo apt-get install python-matplotlib"
(2)Python3.4对应的Numpy与Matplotlib安装:
“sudo apt-get install python3-numpy”
“sudo apt-get install python3-matplotlib"
参考:
http://blog.youkuaiyun.com/shennongzhaizhu/article/details/51596662