How to Install Pytim

IMPORTANT: Pytim (mainly because of its dependency on MDAnalysis) is compatible with Python 2.7 only. Python 3.x is not supported.

There are three ways to install Pytim:

Download the source from github

The package will download all the dependencies which are needed. Prerequisites for running the setup.py script are setuptools, numpy and cython.

git clone https://github.com/Marcello-Sega/pytim.git
cd pytim
python setup.py install --user

Note that on os-x it is usually better not to install Pytim system-wide using sudo, unless you know what you are doing, as newer versions of the operating system are protecting some system files to be overwritten even being super user.

Using pip to access the Python Package Index

The package can also be installed directly from the Python Package Index, along with all the prerequisites.

git clone https://github.com/Marcello-Sega/pytim.git
cd pytim
pip install pytim --user --upgrade

Alternatively, you can use pip (directly or as a module) to install pytim, possibly in developer/editable mode:

git clone https://github.com/Marcello-Sega/pytim.git
cd pytim
python -m pip install -e .

This way the changes in the source will be reflected immediately after restarting a python shell, avoiding the need to reinstall every time.

Using Anaconda

Finally, Pytim is also available in the Anaconda Package Manager.

conda install -c conda-forge pytim