HARPgroup / HSPsquared

Hydrologic Simulation Program Python (HSPsquared)
GNU Affero General Public License v3.0
1 stars 0 forks source link

Virtual Env on Linux #101

Open rburghol opened 2 months ago

rburghol commented 2 months ago

Create Virtual Env for python 3.9 on linux

cd /usr/local/share/
sudo mkdir venv
sudo chgrp allmodelers venv
sudo chmod g+w venv
python3.9 -m virtualenv hsp2dev_py10

# now try to install and run hsp2
source /usr/local/share/venv/hsp2dev_py10/bin/activate
cd /opt/model/HSPsquared
sudo chown rob * -Rf # only had to do this due to prior installs done as root
pip3.9 install . # this went smoothly, no errors

# Run
cd ~/working/modeling/hsp2/land_spec/