Skip to content

Installation on windows using a pre build package (pypi)

Robert Barsch edited this page Feb 2, 2014 · 3 revisions

Python

Get and run the latest official Python 2.7.x installer from http://www.python.org/download/ (Python 3.x is NOT supported for now).

The Python binary and the Scripts directory should be set within the system PATH variable. Therefore append the following to the system PATH

;C:\path\to\Python2.7;C:\path\to\Python2.7\Scripts

See http://docs.python.org/using/windows.html#excursus-setting-environment-variables for a short tutorial on changing environment variables in Windows.

Dependencies

  1. Using pre-compiled executable installers are the easiest way to install the needed packages NumPy, SciPy and matplotlib.

  2. ObsPy and further dependencies can be downloaded via easy_install of the Distribute package. Download and run from the windows command line the Python script http://python-distribute.org/distribute_setup.py.

    python.exe distribute_setup.py
    
  3. The following depended Python module are needed. Run from windows command line:

    easy_install lxml
    easy_install sqlalchemy
    easy_install suds>=0.4
    
  4. We strongly recommend the enhanced Python shell IPython which can be obtained via:

    easy_install pyreadline
    easy_install ipython
    
  5. In order to run the whole test suite you will need a few more packages

    easy_install flake8
    easy_install nose
    easy_install mock
    

ObsPy

Run on command line:

easy_install obspy

ObsPy may be updated at any time using the -U option:

easy_install -U obspy