I installed PyBrain via PyCharm and when I try to compile I get the following error:
Traceback (most recent call last):
File "C:/Users/Marcus/PycharmProjects/ANN/ann.py", line 2, in <module>
from pybrain.tools.shortcuts import buildNetwork
File "C:\Python34\lib\site-packages\pybrain\__init__.py", line 1, in <module>
from structure.__init__ import *
ImportError: No module named 'structure'
However, in the folder site-packages\pybrain\ there's a folder named 'structure' with (what I assume is) what pybrain is asking for.
I'm pretty new to Python so I'm not completely used to this installing packages thing. Is it something that I missed? I have tried to search for a package named "structure" in the PyCharm package installer but there is none (only a 'structures').
Thanks in advance
EDIT: A comment asked me to further explain how I installed the package. In PyCharm, I went to project settings -> project interpreter -> search for "pybrain"
I was having the same problem and tried all the suggestions mentioned here. Finally I realized that the version that was installing was 0.3.1, and it is not compatible with Python 3. So I deleted that version and then ran
!pip install https://github.com/pybrain/pybrain/archive/0.3.3.zip
(from Spyder ipython console). This finally worked.
I encountered the same problem. I am working on Windows 8, 64 bit machine, with WinPython.
As every newbie would do. I install pip and then installed pybrain (or PyBrain, doesn't make difference).
After I tried to see if its working like this :
import pybrain
I got an error saying :
There is no module named "Structures".
When I checked the site-packages, it was there.
I tried the following approaches :
pip3 install pybrain --upgrade
python setup.py install
.The 4th approach worked like a charm.
Cheers.
What I have done as following and it works. (windows 7, anaconda3 installed)
python setup.py install
conda update conda
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With