Я попытался импортировать pybrain, и это дает мне эту ошибку ниже.
>>>import pybrain
ошибка:
Traceback (most recent call last):
File "<pyshell#33>", line 1, in <module>
import pybrain
File "C:\Program Files\Python37\lib\site-packages\pybrain\__init__.py", line 1, in <module>
from pybrain.structure.__init__ import *
File "C:\Program Files\Python37\lib\site-packages\pybrain\structure\__init__.py", line 2, in <module>
from pybrain.structure.modules.__init__ import *
File "C:\Program Files\Python37\lib\site-packages\pybrain\structure\modules\__init__.py", line 2, in <module>
from pybrain.structure.modules.gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer
File "C:\Program Files\Python37\lib\site-packages\pybrain\structure\modules\gate.py", line 10, in <module>
from pybrain.tools.functions import sigmoid, sigmoidPrime
File "C:\Program Files\Python37\lib\site-packages\pybrain\tools\functions.py", line 4, in <module>
from scipy.linalg import inv, det, svd, logm, expm2
ImportError: cannot import name 'expm2' from 'scipy.linalg' (C:\Users\Rahul Bansal\AppData\Roaming\Python\Python37\site-packages\scipy\linalg\__init__.py)
или если попытаться
>>> from pybrain.structure.__init__ import *
Traceback (most recent call last):
File "<pyshell#34>", line 1, in <module>
from pybrain.structure.__init__ import *
File "C:\Program Files\Python37\lib\site-packages\pybrain\__init__.py", line 1, in <module>
from pybrain.structure.__init__ import *
File "C:\Program Files\Python37\lib\site-packages\pybrain\structure\__init__.py", line 2, in <module>
from pybrain.structure.modules.__init__ import *
File "C:\Program Files\Python37\lib\site-packages\pybrain\structure\modules\__init__.py", line 2, in <module>
from pybrain.structure.modules.gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer
File "C:\Program Files\Python37\lib\site-packages\pybrain\structure\modules\gate.py", line 10, in <module>
from pybrain.tools.functions import sigmoid, sigmoidPrime
File "C:\Program Files\Python37\lib\site-packages\pybrain\tools\functions.py", line 4, in <module>
from scipy.linalg import inv, det, svd, logm, expm2
ImportError: cannot import name 'expm2' from 'scipy.linalg' (C:\Users\Rahul Bansal\AppData\Roaming\Python\Python37\site-packages\scipy\linalg\__init__.py)
Пожалуйста, помогите мне правильно импортировать pybrain.