Skip to content

Instantly share code, notes, and snippets.

@igniteflow
Last active January 22, 2026 15:50
Show Gist options
  • Select an option

  • Save igniteflow/0186d745aceee60cf9379f42af9886b6 to your computer and use it in GitHub Desktop.

Select an option

Save igniteflow/0186d745aceee60cf9379f42af9886b6 to your computer and use it in GitHub Desktop.
pyenv virtualenv commands
# 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