Fetching contributors…
Cannot retrieve contributors at this time
105 lines (71 sloc) 2.91 KB

Getting Started


  • Python 2.7, 3.4 or 3.5
  • NumPy 1.8 (or greater)
  • SciPy 0.13 (or greater)
  • matplotlib 1.3 (or greater)
  • pymatsolver 0.1.2 (or greater)
  • Cython 0.20 (or greater)
  • properties[math]

Development Dependencies

  • sphinx
  • sphinx_rtd_theme
  • sphinx-gallery
  • pillow
  • nose-cov
  • pylint

Installing Python

Python is available on all major operating systems, but if you are getting started with python it is best to use a package manager such as Continuum Anaconda. You can download the package manager and use it to install the dependencies above.


When using Continuum Anaconda, make sure to run:

conda update conda
conda update anaconda

Installing discretize

discretize is on pip:

pip install discretize

Installing from Source

First (you need git):

git clone

Second (from the root of the discretize repository):

python build_ext --inline

This builds the cython extensions. You will also need to add the discretize directory to your PYTHON_PATH.


Windows users

A common error when installing the is: Missing linker, needs MSC v.1500 (Microsoft Visual C++ 2008) Runtime Library

The missing library can be found here <>

Useful Links

An enormous amount of information (including tutorials and examples) can be found on the official websites of the packages

Python for scientific computing

  • Python for Scientists Links to commonly used packages, Matlab to Python comparison
  • Python Wiki Lists packages and resources for scientific computing in Python

Numpy and Matlab

Lessons in Python

Editing Python

There are numerous ways to edit and test Python (see PythonWiki for an overview) and in our group at least the following options are being used: