# PyBrain

From Noisebridge

(Difference between revisions)

Mschachter (Talk | contribs) m (→Installation of PyBrain from Source (Mac, Long Version)) |
Mschachter (Talk | contribs) m (→Installation of PyBrain from Source (Mac, Long Version)) |
||

Line 25: | Line 25: | ||

>>> a = np.array([1, 2.5, 3]) | >>> a = np.array([1, 2.5, 3]) | ||

*Download SciPy source file and install manually: | *Download SciPy source file and install manually: | ||

+ | tar xvzf scipy-0.9.x.tgz | ||

+ | cd scipy-0.9.x | ||

+ | sudo python setup.py build (takes a little while..) | ||

+ | sudo python setup.py install |

## Revision as of 21:54, 2 August 2011

## Installation of PyBrain from Source (Linux)

- Make sure NumPy and SciPy are installed.
- (Optional) Uninstall any existing versions of PyBrain:

easy_install -m pybrain

- Get a copy of the most recent PyBrain source code via git:

git clone git://github.com/pybrain/pybrain.git

- Install PyBrain from the source:

cd pybrain python setup.py install

## Installation of PyBrain from Source (Mac, Long Version)

This long version takes you all the way through installing the latest version of python, ipython, NumPy, and SciPy... Hopefully this is not necessary for you to do.

- Download and install the latest version of Python (2.7+) via that .dmg from the website
- Download ipython if you please...
- The complete instructions are here to install NumPy and SciPy.
- Download and install the gfortran .dmg
- Download the NumPy source file and install manually:

tar xvzf numpy-1.6.x.tgz cd numpy-1.6.x sudo python setup.py build (takes a little while..) sudo python setup.py install

- Test your numpy installation:

python >>> import numpy as np >>> a = np.array([1, 2.5, 3])

- Download SciPy source file and install manually:

tar xvzf scipy-0.9.x.tgz cd scipy-0.9.x sudo python setup.py build (takes a little while..) sudo python setup.py install