在stack overflow上查到解决方法:
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.
试了一下,果然可以。
C:\>pip3 install git+https://github.com/pybrain/pybrain.git
Collecting git+https://github.com/pybrain/pybrain.git
Cloning https://github.com/pybrain/pybrain.git to c:\users\shenfang\appdata\lo
cal\temp\pip-ra8tl7_b-build
Requirement already satisfied (use --upgrade to upgrade): scipy in c:\python34\l
ib\site-packages (from PyBrain==0.3.3)
Installing collected packages: PyBrain
Found existing installation: PyBrain 0.3
Uninstalling PyBrain-0.3:
Successfully uninstalled PyBrain-0.3
Running setup.py install for PyBrain
Successfully installed PyBrain-0.3.3