我在ubuntu 12.04上的python上安装了pybrain,但显示错误

时间:2015-11-02 07:18:36

标签: python ubuntu-12.04 pybrain

  

我在python 2.7中安装了pybrain模块   我已安装pybrain但显示此错误

import pybrain
Traceback (most recent call last):
  File "bpa_pybrain1.py", line 1, in <module>
    import pybrain
  File "/usr/local/lib/python2.7/dist-packages/PyBrain-0.3.1-py2.7.egg/pybrain/__init__.py", line 1, in <module>
    from .structure.__init__ import *
  File "/usr/local/lib/python2.7/dist-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/__init__.py", line 3, in <module>
    from .networks.__init__ import *
  File "/usr/local/lib/python2.7/dist-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/networks/__init__.py", line 1, in <module>
    from .swiping import SwipingNetwork
  File "/usr/local/lib/python2.7/dist-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/networks/swiping.py", line 127
    print(' ' * indent, k, end=' ')
                              ^
SyntaxError: invalid syntax

0 个答案:

没有答案