【发布时间】:2013-06-21 18:25:17
【问题描述】:
我在 Debian 7.1 上安装了 python3.2.3 并安装了numpy、scipy、matplotlib。当我想用基本示例测试matplotlib 时,它没有执行,也没有错误执行。这是我机器上的版本
vie@w:~$ python3
Python 3.2.3 (default, Feb 20 2013, 17:02:41)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> print (scipy.__version__)
0.10.1
>>> import numpy
>>> print (numpy.__version__)
1.7.0
>>> import matplotlib
>>> print (matplotlib.__version__)
1.2.0
vie@w:~$ python3 mpl.py
vie@w:~$
我想测试matplotlib(来自网站http://matplotlib.org/examples/animation/basic_example.html)
什么都没有发生...
当我用 python 2.7 测试这个文件时,它工作了。
为什么我不能用 python 3 执行我的mpl.py 文件?
【问题讨论】:
-
你的 scipy 版本比较旧,目前是 0.12。你是从哪里安装包的?
标签: numpy python-3.x matplotlib scipy