问题描述:

I have install pybrain module inside python 2.7

I have installed pybrain but showing this error

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

相关阅读:
Top