Last active
January 22, 2026 15:50
-
-
Save igniteflow/0186d745aceee60cf9379f42af9886b6 to your computer and use it in GitHub Desktop.
pyenv virtualenv commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install prerequisites | |
| brew install pyenv pyenv-virtualenv | |
| # Install Python version 3.13.7 | |
| pyenv install 3.13.7 | |
| # Create a virtual environment named 'bag-end' using Python 3.13.7 | |
| pyenv virtualenv 3.13.7 bag-end | |
| # Activate the 'bag-end' virtual environment | |
| pyenv activate bag-end | |
| # Set the local Python version to 'bag-end' for the current directory | |
| pyenv local bag-end | |
| # List virtualenvs | |
| pyenv virtualenvs | |
| # Delete the virtual environment | |
| pyenv virtualenv-delete bag-end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment