Skip to content

Commit fa2d0bd

Browse files
authored
Update new-virtualenv.md
1 parent 696b977 commit fa2d0bd

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

python/new-virtualenv.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create a new Python virtual environment
1+
# Create a new Python virtual environment/ pyenv cheat sheet
22

33
With:
44

@@ -12,7 +12,6 @@ Run `pyenv which python` to get the current version of Python, and by extension,
1212

1313
$ pyenv which python
1414
/Users/lacey/.pyenv/versions/3.7.6/bin/python
15-
1615

1716
Move on with your life!
1817

@@ -24,3 +23,17 @@ Move on with your life!
2423

2524
# Deactivate the vent
2625
pyenv deactivate
26+
27+
If you're not sure which Python versions you have available to you, run
28+
29+
$ pyenv versions
30+
31+
And you will see a list of Python versions you have installed.
32+
33+
If you want to see which Python versions you can install, run
34+
35+
$ pyenv install -l
36+
37+
To install a version, run:
38+
39+
$ pyenv install {version}

0 commit comments

Comments
 (0)