Last active
June 28, 2022 16:22
-
-
Save marguerrrite/25b6ff3bd485eb541239064fae6f96f0 to your computer and use it in GitHub Desktop.
I never remember how to create and initiate a new virtual env with pyenv.
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
$ 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