-
Notifications
You must be signed in to change notification settings - Fork 0
Installation via PyPi from source
ObsPy has a number of dependencies, for the full and up-to-date list go the Dependencies Page.
To install them, please follow the instructions for the operating system of your choice on this wiki. At the end of this page is a list with a couple of possibilities to install the dependencies on different Linux distributions.
ObsPy can only be installed from source if all dependencies have been installed or can be automatically installed during the installation procedure. Most Python dependencies (except NumPy) will be installed automatically during the installation of ObsPy if they are not available.
Many institutions don't grant root access to their computers. In that case there are a couple of possibilities:
- Recommended: The Anaconda installer works without root access and is very convenient.
- Another possibility is to use the provided system Python and install packages on top of it with the help of so called virtual environments.
-
pip
can (in most cases) install Python packages locally:pip install --user PACKAGE
- Install a complete Python distribution from source. This is for advanced users only but easy enough if you know what you are doing.
Recommended for normal users that do not intend on contributing code to ObsPy. If you have internet access on the machine:
$ pip install obspy
Otherwise download the latest tarball from PyPi and type:
$ pip install obspy-0.x.x.zip
This version is intended for developers or testers of the latest cutting-edge features of ObsPy. Normal users should always install a stable version.
The latest version of ObsPy is available on GitHub. Assuming git is installed you can get it with:
$ git clone [email protected]:obspy/obspy.git
Otherwise a zip archive of the latest development version is also available but not suitable if you plan on modifying ObsPy.
Once you acquired it you can install an editable version of ObsPy with:
$ cd obspy
$ pip install -e .
These are possibly not complete and/or up-to-date sets but they should get you started.
- Debian/Ubuntu
sudo apt-get update
sudo apt-get install python
sudo apt-get install python-dev
sudo apt-get install python-setuptools
sudo apt-get install python-numpy
sudo apt-get install python-numpy-dev
sudo apt-get install python-scipy
sudo apt-get install python-matplotlib
sudo apt-get install python-lxml
sudo apt-get install python-sqlalchemy
sudo apt-get install python-suds
sudo apt-get install ipython
- openSUSE
sudo zypper update
sudo zypper install python
sudo zypper install python-devel
sudo zypper install python-setuptools
sudo zypper install python-numpy
sudo zypper install python-numpy-devel
sudo zypper install python-scipy
sudo zypper install python-matplotlib
sudo zypper install python-matplotlib-tk
sudo zypper install python-lxml
sudo zypper install IPython
- Fedora (see also http://vfamilyserver.org/blog/2013/01/installing-obspy-on-fedora-18/)
yum install -y python
yum install -y python-devel
yum install -y python-setuptools
yum install -y numpy
yum install -y scipy
yum install -y python-matplotlib
yum install -y python-lxml
yum install -y python-suds
yum install -y python-sqlalchemy