PypeTree relies on a few packages: the Python bindings for the VTK 3D visualization library, the Numpy, SciPy and NetworkX packages for scientific computations, wxPython (UI) and some others.
The first step, if you use git, is to clone the source code repository:
$ git clone https://github.com/cjauvin/pypetree.git
or alternatively, you can download the latest snapshot.
PypeTree is very easy to install on Windows thanks to the Python(x, y) distribution, which comprises all the necessary packages at once. If you choose the “custom” install, make sure they are all selected. Also install these two additional modules from the PyPI repository, with either pip or easy_install:
$ pip install webcolors progressbar
On a Ubuntu system it’s not much harder:
$ apt-get install python-vtk python-numpy python-scipy python-wxgtk2.8 python-networkx
and
$ pip install webcolors progressbar
On OSX first do:
$ pip install webcolors progressbar
Then, using the Homebrew package manager:
$ brew install wxpython
$ brew install vtk --with-qt --with-python --with-pyqt
Be warned that the second command (to compile and install VTK) takes a while. Also, it’s possible that you might previously have to install Python (with brew) before doing these commands (I’m not actually sure).
Once installed, you can run the program by simply doing
$ cd pypetree/python
$ python run.py