From 3aa6b2ba1ed248faaa85812fe712c7798d59b35f Mon Sep 17 00:00:00 2001 From: Lorcan Rae Date: Tue, 21 May 2024 19:24:58 +0300 Subject: [PATCH] added pyenv-virtualenv because it won't be removed from dotfiles and it is useful for local python versioning --- _partials/ubuntu_python.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_partials/ubuntu_python.md b/_partials/ubuntu_python.md index 6f191bf..7a23181 100644 --- a/_partials/ubuntu_python.md +++ b/_partials/ubuntu_python.md @@ -16,6 +16,13 @@ pyenv global 3.8.14 ``` Now `python --version` should return `3.8.14` +We'll also install a useful `pyenv` plugin called [`pyenv-virtualenv`](https://github.com/pyenv/pyenv-virtualenv). Although we will primarily be using `poetry` for package management, `pyenv-virtualenv` is useful for controlling the python version locally. + +```bash +git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv +exec zsh +``` + ## Pipx Next we are going to install [pipx](https://pypa.github.io/pipx/) to install python packages we want globally available while still using virtual environments