ฉันใช้ Python 2.7 และพยายามทำให้ PyBrain ทำงาน
แต่ฉันได้รับข้อผิดพลาดนี้แม้ว่าจะติดตั้ง scipy แล้ว -
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-
py2.7.egg/pybrain/__init__.py", line 1, in <module>
from pybrain.structure.__init__ import *
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/__init__.py", line 1, in <module>
from pybrain.structure.connections.__init__ import *
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/connections/__init__.py", line 1, in <module>
from pybrain.structure.connections.full import FullConnection
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/connections/full.py", line 3, in <module>
from scipy import reshape, dot, outer
ImportError: No module named scipy
ฉันได้ติดตั้ง scipy โดยใช้คำสั่งนี้ -
sudo apt-get install python-scipy
ฉันเข้าใจ -
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-scipy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ฉันควรทำอย่างไรดี?
python -c 'import scipy; print(scipy)'
เหรอ?which python
เหรอ?python -c 'import sys; print(sys.path)
เหรอ?