-
Install
uv
(only once)curl -LsSf https://astral.sh/uv/install.sh | sh
-
Source
.bashrc
(only once)source ~/.bashrc
-
Install specific version of python (once per version)
# System python version is 3.12 (2024.09.13) uv python install 3.12
-
Go to your project directory
-
Create virtual environment with your desired python version
uv venv --python=3.12
-
Install dependencies
uv pip install numpy matplotlib scipy notebook # any packages you need
-
Activate virtual environment (every time you want to use it)
source .venv/bin/activate
-
Enjoy!