我安装了python3.6.1。然后用git安装了pybrain(见截图)。然后当我使用import pybrain时,它可以工作,但之后当我使用from pybrain.tools.shortcuts import buildNetwork时,它会给我一个错误:Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.>>> import pybrain
>>> from pybrain.tools.shortcuts import buildNetwork
Traceback (most recent call last):
File "", line 1, in
from pybrain.tools.shortcuts import buildNetwork
File "C:\Users\davm5\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pybrain\tools\shortcuts.py", line 14
except ImportError, e:
SyntaxError: invalid syntax.
>>> from pybrain.structure import TanhLayer
Traceback (most recent call last):
File "", line 1, in
from pybrain.structure import TanhLayer
File "C:\Users\davm5\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pybrain\structure\__init__.py", line 1, in
from connections.__init__ import *
ModuleNotFoundError: No module named 'connections'
为什么会这样?请帮帮我。谢谢
编辑:排除的屏幕截图。根据要求添加了帖子中的所有内容。在