We do not recommend using pip and your local python packages.
Use pyenv to manage your python version.
Use poetry for dependency management and packaging.
Use pipx to manage your local packages, which should just be poetry for this instance.
Simply:
curl https://pyenv.run | bash
pyenv updatepyenv install 3.9
pyenv versionson Ubuntu 23.04 or above:
sudo apt update
sudo apt install pipx
pipx ensurepath
sudo pipx --global ensurepath
exec $SHELLon MacOS:
brew install pipx
pipx ensurepath
sudo pipx --global ensurepath
exec $SHELLpipx install poetry
poetry config virtualenvs.prefer-active-python true
which poetrygit clone https://github.com/Geodefi/geonius
cd geoniuspoetry shellpoetry env use <python_version/3.9/3.9.19/etc>This will output:
Using virtualenv: <path_to_venv> copy <path_to_venv> and use it above to activate
source <path_to_venv>/bin/activategit clone https://github.com/Geodefi/geonius.git
cd geonius
poetry installThen, after cloning the repo you should create a dedicated folder with
poetry run geonius configThen, you can easily start geonius with:
poetry run geonius runIn case you want to run it on background put
&after the command:poetry run geonius run --flags &