Table Of Contents

Previous topic

Overview

Next topic

API docs

http://images.sourceforge.net/images/project-support.jpg

http://sflogo.sourceforge.net/sflogo.php?group_id=126615&type=8

Installation

Requirements

ffnet needs at least:

For plots (which appear in examples) you’ll need the matplotlib package. It is also very convenient to use ffnet interactively with ipython, an enhanced python shell.

If you’re going to compile ffnet from sources you’ll need also:

  • Python header files (which are installed with Python by default on Windows, but not on most Linux distros, for example on Ubuntu you need additional python-dev package),
  • C and Fortran 77 compilers (on Linux you have gcc and gfortran, on Windows (32-bit) you can consider using mingw32).

On Windows you can conveniently install Python(xy) distribution which comes now with ffnet (and its dependencies) preinstalled. Also, you might be interested in installing Anaconda which reaches all ffnet requirements (including compilers) and is free for non-commercial use.

Download

Go to sourceforge download page for release versions of ffnet.

You can also checkout development version of the code from the project subversion repository:

svn co https://svn.code.sf.net/p/ffnet/code/trunk ffnet

or from this direct link.

Installation

If you have setuptools installed you can try to call from command line (as root):

easy_install ffnet

Alternatively, if you have pip, you can call:

pip install ffnet

These commands should automatically download, compile and install ffnet.

If this doesn’t work for you, try manual installation. Unpack ffnet to the directory of your choice, enter it and run:

  • on Linux (gcc + gfortran):

    python setup.py install

  • on Windows (mingw32: gcc + g77):

    python setup.py build --compiler=mingw32 & python setup.py install --skip-build

On Windows you can try also binary installers available on download page. Installation is done by double click. Be aware, that these installers do not check dependencies.

You are also welcome to produce and share binary packages for your operating system. They will be placed at ffnet’s download page.

Testing

Installation can be tested in python console:

from ffnet._tests import runtest
runtest()

Remember to leave installation directory first!

Execute also ffnet examples. They all should work.