Skip to content

Instantly share code, notes, and snippets.

@margueriteroth
Last active June 28, 2022 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save margueriteroth/25b6ff3bd485eb541239064fae6f96f0 to your computer and use it in GitHub Desktop.
Save margueriteroth/25b6ff3bd485eb541239064fae6f96f0 to your computer and use it in GitHub Desktop.
I never remember how to create and initiate a new virtual env with pyenv.
$ pyenv install 3.9.7
$ pyenv shell 3.9.7
$ pyenv virtualenv mynewenvname
$ pyenv shell --unset
$ pyenv local mynewenvname
$ python -V
3.9.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment