PyBrain

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
m (Installation of PyBrain from Source (Mac, Long Version))
 
(4 intermediate revisions by one user not shown)
Line 2: Line 2:
 
*Make sure [http://www.scipy.org/Installing_SciPy NumPy and SciPy] are installed.
 
*Make sure [http://www.scipy.org/Installing_SciPy NumPy and SciPy] are installed.
 
*(Optional) Uninstall any existing versions of PyBrain:
 
*(Optional) Uninstall any existing versions of PyBrain:
     easy_install -m pybrain
+
     easy_install -mxN pybrain
 
*Get a copy of the most recent PyBrain source code via git:
 
*Get a copy of the most recent PyBrain source code via git:
 
     git clone git://github.com/pybrain/pybrain.git
 
     git clone git://github.com/pybrain/pybrain.git
Line 10: Line 10:
  
 
== Installation of PyBrain from Source (Mac, Long Version) ==
 
== 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.
+
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 and you can skip to the PyBrain part. If it is, well, bite the bullet and go for it!
 
*Download and install the latest version of Python (2.7+) via that .dmg from the [http://www.python.org/download/ website]
 
*Download and install the latest version of Python (2.7+) via that .dmg from the [http://www.python.org/download/ website]
 
*Download [http://ipython.org/ ipython] if you please...
 
*Download [http://ipython.org/ ipython] if you please...
*The complete instructions are [http://www.scipy.org/Installing_SciPy/Mac_OS_X here] to install NumPy and SciPy.
+
*The complete instructions are [http://www.scipy.org/Installing_SciPy/Mac_OS_X here] to install NumPy and SciPy. '''Note: I successfully compiled with g++ 4.2, you can probably ignore the instructions to symbolic link to g++-4.0 on OSX 10.6'''
 
*Download and install the [http://r.research.att.com/gfortran-4.2.3.dmg gfortran .dmg]  
 
*Download and install the [http://r.research.att.com/gfortran-4.2.3.dmg gfortran .dmg]  
 
*Download the NumPy source file and install manually:
 
*Download the NumPy source file and install manually:
Line 29: Line 29:
 
         sudo python setup.py build (takes a little while..)
 
         sudo python setup.py build (takes a little while..)
 
         sudo python setup.py install
 
         sudo python setup.py install
 +
*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
 +
    sudo python setup.py build
 +
    sudo python setup.py install
 +
 +
[[Category:Python]]

Latest revision as of 17:57, 2 July 2012

[edit] Installation of PyBrain from Source (Linux)

  • Make sure NumPy and SciPy are installed.
  • (Optional) Uninstall any existing versions of PyBrain:
    easy_install -mxN 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

[edit] 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 and you can skip to the PyBrain part. If it is, well, bite the bullet and go for it!

  • 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. Note: I successfully compiled with g++ 4.2, you can probably ignore the instructions to symbolic link to g++-4.0 on OSX 10.6
  • 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
  • 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
    sudo python setup.py build
    sudo python setup.py install
Personal tools