Skip to content
Snippets Groups Projects
Commit b5b6aee7 authored by Geels, Brendan Ryan's avatar Geels, Brendan Ryan :tophat:
Browse files

Apply suggested changes to install.md

parent 809b7ff1
No related branches found
No related tags found
1 merge request!285Update install.md
# Installation # Installation
This document describes installation instructions for users. For those that wish to modify or develop custom code within **geomag-algorithms**, or prefer to install the Docker container, please see the following documents: This document describes installation instructions for users. For those that wish to modify or develop custom code within **geomag-algorithms**, or prefer to install the Docker container, please see the following documents:
> - [Develop](./develop.md) provides installation instruction for developers > - [Develop](./develop.md) provides installation instruction for developers.
> - [Docker](./install_docker.md) describes Docker container installation and usage. > - [Docker](./install_docker.md) describes Docker container installation and usage.
## Requirements ## Requirements
...@@ -15,29 +15,29 @@ This document describes installation instructions for users. For those that wish ...@@ -15,29 +15,29 @@ This document describes installation instructions for users. For those that wish
```bash ```bash
conda create --name=geomagenv --channel conda-forge python=3 obspy pycurl conda create --name=geomagenv --channel conda-forge python=3 obspy pycurl
source activate geomagenv``` source activate geomagenv
```
2. Install **geomagio** 2. Install **geomagio**
```bash
pip install git+https://code.usgs.gov/ghsc/geomag/geomag-algorithms.git pip install git+https://code.usgs.gov/ghsc/geomag/geomag-algorithms.git
```
### Option 2: Venv and pip ### Option 2: Venv and pip
1. Create a virtual environment using `venv` (recommended) 1. Create a virtual environment using `venv` (recommended)
python -m venv path/to/your/environment ```bash
python -m venv path/to/your/environment
> `venv` is a tool included with Python 3.3 and above that allows you to create isolated Python environments, each with their own set of installed packages, which can help you manage different projects without package conflicts. Each environment is stored within a folder of the user's choosing. ```
> > `venv` is a tool included with Python 3.3 and above that allows you to create isolated Python environments, each with their own set of installed packages, which can help you manage different projects without package conflicts. Each environment is stored within a folder of the user's choosing.
> You can find more information on using `venv` [here](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment). >
> You can find more information on using `venv` [here](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment).
2. Install **geomagio** within the virtual environment 2. Install **geomagio** within the virtual environment
source path/to/your/environment/bin/activate ```bash
pip install git+https://code.usgs.gov/ghsc/geomag/geomag-algorithms.git source path/to/your/environment/bin/activate
pip install git+https://code.usgs.gov/ghsc/geomag/geomag-algorithms.git
## Using **geomagio** ```
**geomagio** is the Python module for interfacing with geomag-algorithms.
- In Python scripts or Jupyter notebooks use `import geomagio` >*Note:* **geomagio** is the Python module for interfacing with geomag-algorithms.
- Use the main script, `geomag.py -h`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment