I am using Python 2.7 and trying to get PyBrain to work.
But I get this error even though scipy is installed –
JavaScript
x
13
13
1
Traceback (most recent call last):
2
File "<stdin>", line 1, in <module>
3
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-
4
py2.7.egg/pybrain/__init__.py", line 1, in <module>
5
from pybrain.structure.__init__ import *
6
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/__init__.py", line 1, in <module>
7
from pybrain.structure.connections.__init__ import *
8
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/connections/__init__.py", line 1, in <module>
9
from pybrain.structure.connections.full import FullConnection
10
File "/usr/local/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/connections/full.py", line 3, in <module>
11
from scipy import reshape, dot, outer
12
ImportError: No module named scipy
13
I have installed scipy using this command –
JavaScript
1
2
1
sudo apt-get install python-scipy
2
I get –
JavaScript
1
6
1
Reading package lists Done
2
Building dependency tree
3
Reading state information Done
4
python-scipy is already the newest version.
5
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6
What should I do?
Advertisement
Answer
Try to install it as a python package using pip. You said you already tried:
JavaScript
1
2
1
sudo apt-get install python-scipy
2
Now run:
JavaScript
1
2
1
pip install scipy
2
I ran both and it worked on my Debian-based box.