当前位置: 动力学知识库 > 问答 > 编程问答 >

I have Installed pybrain on python on ubuntu 12.04 but showing errors

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: