Skip to content
Paul Müller edited this page Dec 12, 2015 · 15 revisions

This article describes the installation using pip. For general installation instructions, see Installation.

PyCorrFit can be installed with pip by executing:

pip install pycorrfit[GUI]

This article describes the installation of pip, all requirements, and PyCorrFit on Unix-like systems.

First, make sure you have python2.7 these packages installed on your system. We will use them with the system-site-packages option from within our virtual environment.

python-matplotlib  
python-numpy  
python-pip  
python-scipy  
python-sympy  
python-virtualenv  
python-wxgtk2.8   
python-yaml   

If wxgtk2.8 is not available, install wxpython3, wxgtk3.0 or any other package that will get you wxPython3. wxPython3 is supported as of PyCorrFit 0.8.8 but wxPython 2.8.12.1 still works. Optional packages for Latex plotting:

texlive-latex-extra  
texlive-math-extra  
texlive-science  

Note: If you do not have the above python-packages installed, installing PyCorrFit with pip will probably not work. For more information on installing these packages on Linux/Mac/Windows, see https://github.com/FCS-analysis/PyCorrFit/wiki/Running-from-source.

There are several tutorials on how to install python packages with pip or easy_install (e.g. here).

We will install PyCorrFit in a virtual environment. First, create a directory for virtual environments.

mkdir ~/ve_pycorrfit  

Create the virtual environment with system-site-packages enabled.

virtualenv ~/ve_pycorrfit  --system-site-packages  

This should have also installed pip in the bin subdirectory. Activate the environment.

source ~/ve_pycorrfit/bin/activate 

Install PyCorrFit using pip. This should install all dependencies, except the latex plotting features (see documentation).

pip install pycorrfit[GUI]  

Run PyCorrFit (located in the ~/ve_pycorrfit/bin/ directory):

pycorrfit

or alternatively:

python -m pycorrfit

Deactivate the environment after you are done.

deactivate

I recommend you to use a virtual environment for the installation of PyCorrFit, because this is safer. If you feel lucky and have administration privileges, you can also install PyCorrFit via sudo pip install pycorrfit (On a Linux machine) without a virtual environment.