Windows7(64)+anaconda2(python2.7)安装pybrain包详细步骤

时间:2021-08-07 20:25:36

第一步:安装Git ,下载地址在这儿

一路next即可。(若已安装Git,请自行跳过这一步)

第二步:运行Git Bash

输入$ git clone git://github.com/pybrain/pybrain.git
备注:clone会有点慢,如果你等不及,请参考知乎上的解决方案

第三步:继续在Git Bash中输入:

cd pybrain
pip install . --user

结果如下:

Processing c:\users\dys\pybrain
Requirement already satisfied: scipy in d:\anaconda2\lib\site-packages (from PyBrain==0.3.3)
Installing collected packages: PyBrain
Running setup.py install for PyBrain: started
Running setup.py install for PyBrain: finished with status 'done'
Successfully installed PyBrain-0.3.3

可参考我的截图,其中有部分语句不需要。

Windows7(64)+anaconda2(python2.7)安装pybrain包详细步骤

第四步:测试

还在当前环境下,输入:

cd pybrain/tests
python runtests.py

输出结果格式如下:

NFO Tests found: [...]
...............................
--------------------------------------------------------------------
Ran 31 tests in 9.830s
OK

到这里,pybrain就安装成功了啦,快去运行你的代码吧!!

参考文献:

  1. Installation · pybrain/pybrain Wiki · GitHub
  2. PyBrain使用简介
  3. github clone如何提高速度?
  4. Git安装与配置