在Ubuntu 12.04 安装numpy和matplotlib以问题

在Ubuntu 12.04 安装numpy和matplotlib命令,如下:

sudo apt-get install python-numpy
sudo apt-get install python-scipy
 
查看本机安装的Python版本:
$ python --version
Python 2.7.3
 
python3 --version
Python 3.2.3
 
python3.5 --version
Python 3.5.2
 
进入Python shell:
$ python
>>> import numpy
>>>
 
$ python3
>>> import numpy
ImportError: No module named numpy
 
$ python3.5
>>> import numpy
>>>
由上知,在Pyhon3的环境中报错,在网上查找资料,但目前还不明白问题原因。
posted on 2016-11-15 16:00  chengzhicc  阅读(265)  评论(0编辑  收藏  举报