Browse Source

docs: update installation instructions [CI SKIP]

candidate
Sebastian Heimann 1 month ago
parent
commit
d694364fb2
  1. 4
      doc/source/conf.py
  2. 41
      doc/source/install/details.rst
  3. 7
      doc/source/install/index.rst
  4. 41
      doc/source/install/packages/anaconda.rst
  5. 10
      doc/source/install/packages/index.rst
  6. 18
      doc/source/install/system/centos.rst
  7. 71
      doc/source/install/system/deb.rst
  8. 6
      doc/source/install/system/index.rst
  9. 11
      doc/source/install/system/linux/arch.rst
  10. 24
      doc/source/install/system/linux/centos.rst
  11. 25
      doc/source/install/system/linux/deb.rst
  12. 18
      doc/source/install/system/linux/index.rst
  13. 23
      doc/source/install/system/linux/suse.rst
  14. 61
      doc/source/install/system/mac.rst
  15. 43
      doc/source/install/system/suse.rst
  16. 52
      doc/source/install/system/windows.rst
  17. 85
      doc/source/install/upgrade.rst

4
doc/source/conf.py

@ -208,8 +208,8 @@ latex_engine = 'xelatex'
latex_elements = {
'papersize': 'a4paper',
'preamble': '''
\usepackage[utf8x]{inputenc}
\setcounter{tocdepth}{4}''',
\\usepackage[utf8x]{inputenc}
\\setcounter{tocdepth}{4}''',
'utf8extra': '',
}

41
doc/source/install/details.rst

@ -1,12 +1,11 @@
Detailed installation instructions
==================================
Pyrocko can be installed on every operating system where its prerequisites are
available. This document describes how to install Pyrocko on Unix-like
operating systems, like Linux and Mac OS X.
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.
Explicit listings of the commands needed to install Pyrocko are given
in section
**For standard install instructions, head on over to**
* :doc:`system/index`
@ -16,8 +15,13 @@ Prerequisites
The following software packages must be installed before Pyrocko can be
installed from source:
* Build requirements
* C compiler (tested with gcc, clang and MSVC)
* ``patch`` utility
* `NumPy <http://numpy.scipy.org/>`_ (>= 1.6, with development headers)
* Try to use normal system packages for these Python modules:
* `Python <http://www.python.org/>`_ (== 2.7 or >= 3.4, with development headers)
* `Python <http://www.python.org/>`_ (== 2.7 or >= 3.4, with development headers, Python 2 support will be dropped soon)
* `NumPy <http://numpy.scipy.org/>`_ (>= 1.6, with development headers)
* `SciPy <http://scipy.org/>`_
* `matplotlib <http://matplotlib.sourceforge.net/>`_ (with Qt4 or Qt5 backend)
@ -39,9 +43,12 @@ installed from source:
* `QSSP <https://git.pyrocko.org/pyrocko/fomosto-qssp>`_ (optional, needed for the Fomosto ``qssp.2010`` backend)
* `PSGRN/PSCMP <https://git.pyrocko.org/pyrocko/fomosto-psgrn-pscmp>`_ (optional, needed for the Fomosto ``psgrn.pscmp`` backend)
Download, compile and install Pyrocko from source
-------------------------------------------------
Download and install Pyrocko
----------------------------
The following examples will install Pyrocko system-wide with Python 3 on Linux
or MacOS. For Windows source installs, please refer to :ref:`Installation on
Windows: From source <windows-install-from-source>`.
.. highlight:: sh
@ -51,12 +58,15 @@ to install::
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install
# 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* or *pip*, you should manually remove the old installation -
otherwise you will end up with two parallel installations of Pyrocko which will
cause trouble.
*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
--------
@ -65,5 +75,8 @@ 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
sudo python setup.py install
git pull origin master --ff-only
# for single user:
python3 setup.py install --user
# system wide:
sudo python3 setup.py install

7
doc/source/install/index.rst

@ -1,13 +1,13 @@
Installation
============
Pyrocko can be installed on every operating system where its prerequisites are
Pyrocko can be installed on any operating system where its prerequisites are
available.
Under **Linux**, we recommend to use the system's **native package manager** to
install the prerequisites and to install Pyrocko **from source**. Using
third-party package managers often leads to conflicts. Follow the instructions
in :doc:`system/index`.
third-party package managers like *pip* or *conda* often leads to
conflicts. Follow the instructions in :doc:`system/index`.
For **Anaconda** users, prebuilt packages are available (see
:doc:`packages/anaconda`). Also packages for **pip** are available
@ -20,7 +20,6 @@ For additional information, refer to :doc:`details`.
system/index
packages/index
upgrade
details
Support

41
doc/source/install/packages/anaconda.rst

@ -2,49 +2,42 @@ Installation under Anaconda
===========================
`Anaconda <https://www.anaconda.com/>`_, is a cross-platform Python
distribution with its own package manager ``conda``. There are two versions:
Anaconda3 for Python 3 and Anaconda2 for Python 2. Pyrocko can be installed
under either of them.
distribution with its own package manager ``conda``. For a more lightweight
installation, consider installing `Miniconda
<https://docs.conda.io/en/latest/miniconda.html>`_. Only the Python 3 version,
Anaconda3/Miniconda3 is supported for Pyrocko versions above v2021.04.02.
.. _conda_install:
Anaconda3 and 2 using ``conda``
---------------------------------
From binary packages using ``conda``
------------------------------------
As of Pyrocko 2017.11, pre-built packages are available for Linux 64-Bit and MacOS. You can use can use the ``conda`` package manager to install Pyrocko framwork:
Pre-built packages are available for 64-bit Linux, MacOS and Windows. You can
use can use the ``conda`` package manager to install the Pyrocko framework:
.. code-block:: bash
:caption: Pre-build Pyrocko packages are available for Anaconda3 and 2 on Linux64 and OSX
:caption: Pre-built Pyrocko conda packages are available for Linux, MacOS and Windows.
conda install -c pyrocko pyrocko
More information available at https://anaconda.org/pyrocko/pyrocko
Anaconda: update to latest Pyrocko version (master branch)
----------------------------------------------------------
**All dependencies should be resolved by a previous conda install**. You can
then go ahead and use ``pip`` to update Pyrocko from source
.. code-block:: bash
:caption: Anaconda's ``pip`` can install straight from the Git repository
pip install git+https://git.pyrocko.org/pyrocko/pyrocko.git
From source
-----------
Anaconda (compilation from source)
-----------------------------------
Here's how to download, compile and install the latest Pyrocko version under
Anaconda on Linux or MacOS. For Windows source installs, please refer to
:ref:`Installation on Windows: From source <windows-install-from-source>`.
.. code-block:: bash
:caption: Compile from sources
:caption: Compile from source
conda install pyqt=5
conda install setuptools numpy scipy matplotlib pyqt pyyaml progressbar2 requests jinja2 nose
cd `conda info --root`
mkdir src
cd src
git clone https://git.pyrocko.org/pyrocko/pyrocko.git
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
python setup.py install

10
doc/source/install/packages/index.rst

@ -1,16 +1,16 @@
Python package manager installations
------------------------------------
We have pre-built packages ready for Anaconda3 running on Linux64 and Mac OS X.
If you want to keep using Anaconda2 you have to build Pyrocko from source. For
the ``pip`` package manager, we have source packages ready, meaning Pyrocko is
built on your system during the installation:
We provide pre-compiled Anaconda and pip packages for use with Python 3,
running on X86_64 Linux, Mac OS X and Windows. As a fallback for other systems
and platforms we provide pip source packages which are compiled during
installation with pip.
.. toctree ::
:maxdepth: 1
Anaconda <anaconda>
Installation using pip <pip>
pip <pip>
.. raw:: html

18
doc/source/install/system/centos.rst

@ -1,18 +0,0 @@
Installation on Centos systems
..............................
.. code-block:: bash
:caption: e.g. **Centos** (7)
sudo yum install make gcc git python python-yaml python-matplotlib
sudo yum install numpy scipy python-requests python-coverage
sudo yum install python-jinja2 PyQt4 python-matplotlib-qt4
sudo easy_install progressbar
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`index` or
:doc:`/install/details`.

71
doc/source/install/system/deb.rst

@ -1,71 +0,0 @@
Installation on Ubuntu, Debian, Mint, ...
=========================================
Python 3.4 and later
--------------------
.. code-block:: bash
:caption: e.g. **Ubuntu** (14.04.1 LTS), **Debian** (7 wheezy, 8 jessie), **Mint** (17 - 18.2 Sonya)
sudo apt-get install -y make git python3-dev python3-setuptools
sudo apt-get install -y python3-numpy python3-numpy-dev python3-scipy python3-matplotlib
sudo apt-get install -y python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtsvg
sudo apt-get install -y python3-pyqt5.qtwebengine || sudo apt-get install -y python3-pyqt5.qtwebkit
sudo apt-get install -y python3-yaml python3-progressbar python3-jinja2
sudo apt-get install -y python3-requests
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python3 setup.py install
Python 2.7
----------
.. code-block:: bash
:caption: e.g. **Ubuntu** (14.04.1 LTS), **Debian** (7 wheezy, 8 jessie), **Mint** (13 Maya)
sudo apt-get install -y make git python-dev python-setuptools
sudo apt-get install -y python-numpy python-numpy-dev python-scipy python-matplotlib
sudo apt-get install -y python-pyqt5 python-pyqt5.qtopengl python-pyqt5.qtsvg
sudo apt-get install -y python-pyqt5.qtwebengine || sudo apt-get install -y python-pyqt5.qtwebkit
sudo apt-get install -y python-yaml python-progressbar python-jinja2
sudo apt-get install -y python-requests
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install
Python 2.7 user local installation (no sudo)
--------------------------------------------
For local installations of python modules, please first configure your
``PYTHONPATH`` and ``PYTHONUSERBASE`` variables in your environmment or your
``~/.bashrc``::
export PYTHONUSERBASE=<path_to_local_python>
export PYTHONPATH=:<path_to_local_python_site-packages>:$PYTHONPATH
Then install local Python Module dependencies and Pyrocko locally:
.. code-block:: bash
:caption: e.g. **Ubuntu** (12.04.1 LTS), **Debian** (7 wheezy), **Mint** (13 Maya)
pip install --user py27-numpy
pip install --user py27-scipy
pip install --user py27-matplotlib
pip install --user py27-yaml
pip install --user py27-pyqt5
pip install --user py27-setuptools
pip install --user py27-jinja2
easy_install --user progressbar || pip install --user progressbar
pip install --user Jinja2
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
python setup.py install --user --install-scripts=<path_to_your_local_binaries>
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`index` or
:doc:`/install/details`.

6
doc/source/install/system/index.rst

@ -7,11 +7,9 @@ on some popular systems.
.. toctree::
:maxdepth: 1
Ubuntu, Debian, Mint, ... <deb>
Linux <linux/index>
Mac OS X <mac>
Centos, Fedora, ... <centos>
OpenSuse <suse>
Arch Linux <arch>
Windows <windows>
For instructions on how to install Pyrocko on other systems or if the
installation with any of the above procedures fails, see

11
doc/source/install/system/arch.rst → doc/source/install/system/linux/arch.rst

@ -1,18 +1,17 @@
Installation on Arch Linux systems
==================================
Python 3.4 and later
--------------------
These example instructions are for a system-wide installation of Pyrocko under
Arch Linux with default Python 3.
.. code-block:: bash
:caption: **Arch Linux** (e.g. 2017.11.01)
:caption: **Arch Linux** (e.g. 2021.06.01)
sudo pacman -Syu git make gcc python python-setuptools \
python-numpy python-scipy python-matplotlib \
python-pyqt5 qt5-webengine qt5-svg \
python-cairo python-opengl python-progressbar \
python-requests python-yaml python-jinja \
python-nose python-coverage
python-requests python-yaml python-jinja
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
@ -20,5 +19,5 @@ Python 3.4 and later
sudo python setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`index` or
installation with the above procedure fails, see :doc:`../index` or
:doc:`/install/details`.

24
doc/source/install/system/linux/centos.rst

@ -0,0 +1,24 @@
Installation on Centos and other rpm-based systems
--------------------------------------------------
These example instructions are for a system-wide installation of Pyrocko under
Centos 8 with Python 3. Slight variations may work on other rpm-based systems.
.. code-block:: bash
:caption: e.g. **Centos 8**, Python 3
sudo yum install epel-release dnf-plugins-core
sudo yum config-manager --set-enabled powertools
sudo yum install make gcc git python3 python3-yaml python3-matplotlib
sudo yum install python3-numpy python3-scipy python3-requests
sudo yum install python3-jinja2 python3-qt5 python3-matplotlib-qt5
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python3 setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`../index` or
:doc:`/install/details`.

25
doc/source/install/system/linux/deb.rst

@ -0,0 +1,25 @@
Installation on Ubuntu, Debian, Mint, ...
=========================================
These example instructions should work for a system-wide installation of
Pyrocko under deb-based Linuxes with Python 3.
.. code-block:: bash
:caption: e.g. **Ubuntu** (14.04, 16.04, 18.04, 20.04), **Debian** (8, 9, 10), **Mint** (17, 18, 19, 20)
sudo apt-get install -y make git python3-dev python3-setuptools
sudo apt-get install -y python3-yaml python3-progressbar python3-jinja2
sudo apt-get install -y python3-requests
sudo apt-get install -y python3-numpy python3-numpy-dev python3-scipy python3-matplotlib
sudo apt-get install -y python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtsvg
# the following may emit an error message which can be ignored
sudo apt-get install -y python3-pyqt5.qtwebengine || sudo apt-get install -y python3-pyqt5.qtwebkit
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python3 setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`../index` or
:doc:`/install/details`.

18
doc/source/install/system/linux/index.rst

@ -0,0 +1,18 @@
Installation under Linux
------------------------
This section lists the commands needed to install Pyrocko and its prerequisites
on some popular Linux distributions
.. toctree::
:maxdepth: 1
Ubuntu, Debian, Mint, ... (deb based) <deb>
Centos, Fedora, ... (rpm based) <centos>
OpenSuse <suse>
Arch <arch>
For instructions on how to install Pyrocko on other systems or if the
installation with any of the above procedures fails, see
:doc:`/install/details`.

23
doc/source/install/system/linux/suse.rst

@ -0,0 +1,23 @@
Installation on OpenSuse systems
================================
These example instructions should work for a system-wide installation of
Pyrocko under OpenSuse Linuxes with Python 3.
.. code-block:: bash
:caption: **OpenSuse** (e.g. 42.1)
sudo zypper -n install make git gcc python3-devel python3-setuptools \
python3-numpy python3-numpy-devel python3-scipy python3-matplotlib \
python3-qt5 \
python3-PyYAML python3-progressbar python3-Jinja2 \
python3-requests
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python3 setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`../index` or
:doc:`/install/details`.

61
doc/source/install/system/mac.rst

@ -16,6 +16,11 @@ If you are using Anaconda under Mac OS X, see
Mac OS X with MacPorts (Python 3)
----------------------------------
.. note::
This information is slightly outdated. There should be a newer version
of Python 3 available with MacPorts. Help on updating the docs is welcome!
.. code-block:: bash
:caption: e.g. **Mac OS X** (10.6 - 10.10) with **MacPorts** (2.4.2)
@ -24,63 +29,11 @@ Mac OS X with MacPorts (Python 3)
sudo port select python python35
sudo port install py35-numpy py35-scipy py35-matplotlib py35-yaml py35-pyqt5 py35-setuptools py35-jinja2 py35-requests
sudo easy_install progressbar
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install --install-scripts=/usr/local/bin
Mac OS X with MacPorts (Python 2.7)
-----------------------------------
.. code-block:: bash
:caption: e.g. **Mac OS X** (10.6 - 10.10) with **MacPorts** (2.4.2)
sudo port install git
sudo port install python27
sudo port select python python27
sudo port install py27-numpy py27-scipy py27-matplotlib py27-yaml py27-pyqt5 py27-setuptools py27-jinja2 py27-requests
sudo easy_install progressbar
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install --install-scripts=/usr/local/bin
Mac OS X with MacPorts and user installation (no sudo)
-------------------------------------------------------
Try this if you don't have sudo rights in ``/usr/bin``.
.. code-block:: bash
:caption: e.g. **Mac OS X** (10.6 - 10.10) with **MacPorts** (2.4.2)
port install git
port install python35
port select python python35
port install py35-numpy py35-scipy py35-matplotlib py35-yaml py35-pyqt5 py35-setuptools py35-jinja2 py35-requests
For local installations of python modules, please first configure your
``PYTHONPATH`` and ``PYTHONUSERBASE`` variables in your environment or your
``~/.bash_profile``::
export PYTHONUSERBASE=<path_to_local_python>
export PYTHONPATH=:<path_to_local_python_site-packages>:$PYTHONPATH
Then install local Python module prerequisites and Pyrocko locally.
Depending on your system's default Python version, you may have to install and
use pip3 instead of pip.
.. code-block:: bash
:caption: e.g. **Mac OS X** (10.6 - 10.10) with **MacPorts** (2.3.3)
pip install --user progressbar
pip install --user Jinja2
easy_install --user pyavl
cd ~/src/ # or wherever you keep your source packages
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
python setup.py install --user --install-scripts=<path_to_your_local_binaries>
sudo python3 setup.py install --install-scripts=/usr/local/bin
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`index` or

43
doc/source/install/system/suse.rst

@ -1,43 +0,0 @@
Installation on OpenSuse systems
================================
Python 3.4 and later
--------------------
.. code-block:: bash
:caption: **OpenSuse** (e.g. 42.1)
sudo zypper -n install make git gcc python3-devel python3-setuptools \
python3-numpy python3-numpy-devel python3-scipy python3-matplotlib \
python3-qt5 \
python3-PyYAML python3-progressbar python3-Jinja2 \
python3-requests \
python3-nose python3-coverage
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python3 setup.py install
Python 2.7
----------
.. code-block:: bash
:caption: **OpenSuse** (e.g. 42.1)
sudo zypper install make git gcc python-devel python-setuptools \
python-numpy python-numpy-devel python-scipy python-matplotlib \
python-matplotlib-qt5 python-matplotlib-tk \
python-qt5 \
python-PyYAML python-progressbar python-Jinja2 \
python-requests \
python-nose python-coverage
cd ~/src/ # or wherever you keep your source packages
git clone https://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`index` or
:doc:`/install/details`.

52
doc/source/install/system/windows.rst

@ -0,0 +1,52 @@
Installation on Windows
=======================
.. note::
Windows support is experimental. We would love to get your feedback in the
`Windows channel on the Pyrocko Hive
<https://hive.pyrocko.org/pyrocko-support/channels/windows>`_.
We provide binary PIP and Anaconda packages for the Windows platform for Python
3.6 - 3.9. If MSVC is installed, it is also possible to install Pyrocko from
source.
From precompiled Anaconda packages
----------------------------------
If you are using Anaconda under Windows, see :doc:`/install/packages/anaconda`.
From precompiled PIP packages
-----------------------------
If you want to use PIP to install Pyrocko under Windows, see
:doc:`/install/packages/pip`.
.. _windows-install-from-source:
From source
-----------
In this example installation, we assume that you are using Anaconda/Miniconda
to manage your Python environment. Other setups may also be possible as long as
you can run ``git``, ``python``, ``pip``, and ``patch`` from your Windows
command line and you have a C compiler installed.
1. Install `Build Tools for Visual Studio 2019
<https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019>`_.
You don't need the complete Visual Studio 2019. In Build tools, install C++
build tools and ensure the latest versions of MSVCv142 - VS 2019 C++ x64/x86
build tools and Windows 10 SDK are checked.
2. On the Windows command line, run::
git clone https://git.pyrocko.org/pyrocko/pyrocko.git
cd pyrocko
conda install git setuptools m2-patch
conda install numpy scipy matplotlib pyqt pyyaml progressbar2 requests jinja2 nose
python setup.py install
For instructions on how to install Pyrocko on other systems or if the
installation with the above procedure fails, see :doc:`index` or
:doc:`/install/details`.

85
doc/source/install/upgrade.rst

@ -1,85 +0,0 @@
Upgrading Pyrocko from v0.3 to v2017.11 or later
================================================
This document describes details of the upgrade from Pyrocko version **v0.3** to
**v2017.11** or later.
Starting with v2017.11, **Pyrocko supports Python 3**. Additionally, Pyrocko's
internal module hierarchy has changed (see :doc:`../library/index`) - The API
is backward-compatible so your old scripts will still work. **Under Python 2,
upgrading the framework requires purging of the old v0.3 version and installing
some new dependencies**. Pyrocko will continue to work under Python 2.
Python 3
--------
Nothing special has to be considered if you want to start working with Python 3.
Simply do a fresh install of Pyrocko as described in :doc:`index`.
Python 2
--------
If you have previously installed Pyrocko in an older version under Python 2,
please follow the steps in the appropriate section below for a clean new
installation.
Anaconda2
.........
If you have installed Pyrocko v0.3 under Anaconda2 you have to purge the
old installation:
.. code-block:: bash
conda remove --all pyrocko
Then follow the instructions in :doc:`packages/anaconda`.
Ubuntu, Debian, Mint, ...
.........................
Following the steps described in :doc:`system/deb` will **install the new
dependencies**.
Pyrocko's ``setup.py`` installer recognizes earlier installations of Pyrocko.
If there is a conflict it will tell you how to **purge your old installation**
when you try to run ``python setup.py install``.
.. code-block:: bash
:caption: Ubuntu, Debian, etc.: install new prerequisites and purge old install
# upgrade to PyQt5 and other depedencies
sudo apt-get install -y python-requests python-pyqt5
sudo apt-get install -y python-pyqt5 python-pyqt5.qtopengl python-pyqt5.qtsvg
sudo apt-get install -y python-pyqt5.qtwebengine || sudo apt-get install -y python-pyqt5.qtwebkit
# clean Git clone
cd src
rm -rf pyrocko
git clone https://git.pyrocko.org/pyrocko/pyrocko.git
cd pyrocko
sudo python setup.py install # on failure, reports <directory> to remove
rm -rf <directory>
sudo python setup.py install
Mac OS X with MacPorts
......................
If you had Pyrocko v0.3 installed through MacPorts you have to delete that
installation:
.. code-block:: bash
:caption: MacPorts has to install new dependencies
sudo rm -rf /opt/local/lib/python2.7/dist-packages/pyrocko*
sudo port install py27-pyqt5 py27-requests
cd ~/src/ # or wherever you keep your source packages
rm -rf pyrocko
git clone git://git.pyrocko.org/pyrocko/pyrocko.git pyrocko
cd pyrocko
sudo python setup.py install --install-scripts=/usr/local/bin
More information here :doc:`system/mac`.
Loading…
Cancel
Save