Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm having troubles getting pybrain working through anaconda

Tags:

python

pybrain

Here is my problem:

After I managed to install anaconda (having python 3.4), I apparently managed to install pybrain too. But when i use 'import pybrain' from anaconda or from the terminal too I get this error:

>>> import pybrain
Traceback (most recent call last):

File "<ipython-input-2-0fb7233d2a8c>", line 1, in <module>
import pybrain

 File "//anaconda/lib/python3.4/site-packages/PyBrain-0.3-py3.4.egg/pybrain/__init__.py", line 1, in <module>
from structure.__init__ import *

 ImportError: No module named 'structure'
like image 797
nskywalker Avatar asked Oct 13 '14 15:10

nskywalker


1 Answers

Simply running sudo pip3 install git+https://github.com/pybrain/pybrain.git worked for me after having the same issue.

The version up on PyPi isn't Python 3 compatible. Installing the latest commit directly using pip3 should take care of your old package (from PyPi) as well.

like image 55
erb Avatar answered Sep 30 '22 12:09

erb