Detailed installation instructions

Pyrocko can be installed under any operating system where its prerequisites are available. This document describes details about its requirements which are needed when a standard install is not possible or conflicts arise.

For standard install instructions, head on over to

Prerequisites

The following software packages must be installed before Pyrocko can be installed from source:

Download, compile and install Pyrocko from source

The following examples will install Pyrocko system-wide with Python 3 on Linux or MacOS. For Windows source installs, please refer to Installation on Windows: From source.

Use git to download the software package and the included script setup.py to install:

cd ~/src/   # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
# for single user:
python3 setup.py install --user
# system wide:
sudo python3 setup.py install

Note: If you have previously installed Pyrocko using other tools like e.g. easy_install, pip, or conda, you should first remove the old installation. Otherwise you will end up with two parallel installations which will cause trouble.

Updating

If you later would like to update Pyrocko, run the following commands (this assumes that you have used git to download Pyrocko):

cd ~/src/pyrocko   # assuming the Pyrocko source package is here
git pull origin master --ff-only
# for single user:
python3 setup.py install --user
# system wide:
sudo python3 setup.py install