Skip to content

Instantly share code, notes, and snippets.

@kevgathuku
Created July 1, 2025 09:14
Show Gist options
  • Save kevgathuku/523aefa0f8096b7947520d73f74174db to your computer and use it in GitHub Desktop.
Save kevgathuku/523aefa0f8096b7947520d73f74174db to your computer and use it in GitHub Desktop.
Create python venv with specific python version

To specify the specific python version to use, you can specify it as follows in the .envrc file

layout python /usr/bin/python3.11

I also needed to install the python-venv package for python 3.11


❯ sudo apt install python3.11-venv
@kevgathuku
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment