我在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