API used to download data from swiss geo admin.
sudo apt update
sudo apt install pipx
pipx ensurepath
pipx ensurepath --force
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12
sudo apt install python3.12-venv
Reference: Tutorial is the following link
Important
If psycopg-c installation raise the error: psycopg-c (3.1.18) not supporting PEP 517 builds
sudo apt install libpq-dev gcc
sudo apt install python3.12-dev
pipx install poetry
sudo apt install direnv
echo $0
nano ~/.bashrc
If you don't use bash, please check direnv doc.
At the end of the file add the following row:
eval "$(direnv hook bash)"
export PYTHONPATH=$(pwd)/src
direnv allow
You can check if the environment variable has been created (it should return the src folder path).
echo $PYTHONPATH
poetry init
python3.12 -m venv .venv
poetry env use .venv/bin/python3.12
poetry install
curl -fsSL https://install.julialang.org | sh
julia --project
]
status
instantiate