简体   繁体   English

我有麻烦让pybrain通过anaconda工作

[英]I'm having troubles getting pybrain working through anaconda

Here is my problem: 这是我的问题:

After I managed to install anaconda (having python 3.4), I apparently managed to install pybrain too. 在我设法安装anaconda(拥有python 3.4)之后,我显然设法安装了pybrain。 But when i use 'import pybrain' from anaconda or from the terminal too I get this error: 但是,当我使用来自anaconda或终端的'import pybrain'时,我也会收到此错误:

>>> 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'

Simply running sudo pip3 install git+https://github.com/pybrain/pybrain.git worked for me after having the same issue. 只需运行sudo pip3 install git+https://github.com/pybrain/pybrain.git在遇到同样的问题后为我工作。

The version up on PyPi isn't Python 3 compatible. PyPi上的版本不兼容Python 3。 Installing the latest commit directly using pip3 should take care of your old package (from PyPi) as well. 使用pip3直接安装最新提交pip3应该处理旧包(来自PyPi)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM