Installing OGS - Virtual environment problem

Hi - I am trying to install OGS on a Mac - I have limited python experience.

OGS says:

A straightforward way of installing OGS is via Python’s pip-tool:

# Optional: create a Python virtual environment, see below
python -m venv .venv
.\venv\Scripts\Activate.ps1 # for PowerShell OR
.\venv\Scripts\activate.bat # for Command Prompt

This is what I see in Terminal:

robincurtis@Robins-MacBook-Pro750 ~ % python -m venv .venv
robincurtis@Robins-MacBook-Pro750 ~ % .\venv\Scripts\activate.bat
zsh: command not found: .venvScriptsactivate.bat

Do I need an activate.bat file ? Where ? 

This is basic stuff - any help appreciated

Thank you.......

Hi,

in the top of the page you are referring (Introduction) you need to select the macOS tab or (in this special case) the Linux tab and you will find:

source .venv/bin/activate

Tobias

Thank you for this Tobias. I have tried clicking on the Select OS option in the Introduction - and I don’t see anything change. (Tried 3 different browsers).

Do I just put:

source .venv/bin/activate

into Terminal ?

Apologies for unfamiliarity with python - just want to get to the modelling !!

Regards Robin.

Hi,

yest, then the next step (if you follow the Python way) would be:

pip install ogstools[ogs]

Now ogs is available in your current shell session (terminal).

If you do not need/want to work with Python see Option2 in:

Tobias

Tobias - thank you for this.

Think I need to upgrade my version of Python.

Regards Robin

As additional remark for the default zsh terminal on Mac: pip install ogstools[ogs] didn’t work, instead pip install ogstools"[ogs]" works

1 Like

Or pip install ogstools\[ogs\].

1 Like