Skip to content
Snippets Groups Projects
install.md 1.12 KiB
Newer Older
  • Learn to ignore specific revisions
  • > - [Develop](./develop.md) describes how to install locally.
    > - [Docker](./install_docker.md) describes container usage.
    
    - Python 3.6 or newer
    - ObsPy 1.2.1 or newer
    
    1.  Install Python and dependencies
    
        - Option 1: Anaconda/Miniconda (https://conda.io/miniconda.html):
    
              conda create --name=geomagenv --channel conda-forge python=3 obspy pycurl
              source activate geomagenv
    
    Jeremy M Fee's avatar
    Jeremy M Fee committed
    
    
          > `pyenv` can install specific/multiple versions of python
          >
          > - https://github.com/pyenv/pyenv
          > - https://github.com/pyenv-win/pyenv-win
    
              # create virtual environment (optional)
              python -m venv path/to/geomagenv
              source path/to/geomagenv/bin/activate
    
              # install dependencies
              pip install numpy
              pip install obspy
    
    2.  Install **geomagio**
    
            pip install git+https://github.com/usgs/geomag-algorithms.git
    
    Jeremy M Fee's avatar
    Jeremy M Fee committed
    
    
    Jeremy M Fee's avatar
    Jeremy M Fee committed
        - Use the main script, `geomag.py -h`
        - In python scripts, `import geomagio`
        - Interactively with Jupyter notebooks ( http://jupyter.org/install.html )