From e165cb90956fd7c4479d00b7e33f819c4bf041f9 Mon Sep 17 00:00:00 2001 From: Claude Becker <becker@phys.ethz.ch> Date: Mon, 3 Mar 2025 09:49:58 +0100 Subject: [PATCH] python: redirect pyenv to home --- linux/workstation/python.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux/workstation/python.markdown b/linux/workstation/python.markdown index 5172eb0e..34d84ad1 100644 --- a/linux/workstation/python.markdown +++ b/linux/workstation/python.markdown @@ -51,3 +51,11 @@ ipython kernel install --name "opt-software-pyenv" --user ``` This creates a custom configuration `~/.local/share/jupyter/kernels/opt-software-pyenv/kernel.json` in your home. Inside JupyterHub you should now be able to pick this kernel in the `Kernel -> Change kernel` menu. + +### Use pyenv to install custom Python versions + +If you want to install your own Python versions, watch out to either not source our environment, or to redirect the pyenv installation to a location, where you have write access (either the local scratch or your home folder). + +``` +PYENV_ROOT=$HOME pyenv install <version> +``` -- GitLab