我安装了EPD fron Enthought,我正在尝试基于指令@http://docs.enthought.com/chaco/quickstart.html中的示例构建一些查科。我跑进2 [新手]在IPython的解释问题:Enthought的EPD示例教程
1.
In [3]: python lines.py
File "<ipython-input-3-75ced467f885>", line 1
python lines.py
^
SyntaxError: invalid syntax
无效的语法?
2.
In [6]: import lines
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
C:\Windows\system32\<ipython-input-6-8ce26194a7ce> in <module>()
----> 1 import lines
C:\Python27\lines.py in <module>()
7
8 from numpy import linspace, pi, sin, cos
----> 9 from chaco.shell import plot, hold, title, show
10
11 # Create some data
C:\Python27\chaco.py in <module>()
1 import numpy as np
----> 2 from chaco.shell import *
3
4 x = np.linspace(-2*pi, 2*pi, 100)
5 y = np.sin(x)
ImportError: No module named shell
无模块命名的壳呢?
我对此非常感兴趣,并希望在Peter Wang看到来自Pycon 2012的演示视频后试用这些示例。我非常感谢我做错了什么,以及我能做些什么才能使其发挥作用;我没有在quicksart上找到任何关于谷歌或类似的东西。
谢谢你的时间。
奥利龙
在OP请求关闭:*我解决它通过右键做一些愚蠢的鼠标右键点击.py文件,并选择了与蟒蛇开放。可执行程序。谢谢* – Kev