-
Notifications
You must be signed in to change notification settings - Fork 96
Multiple Python Versions
This is a draft page, undergoing edits.
Some guidelines to enable multiple Python versions on your system
Just install the different python versions in different directories.
I personally install them in C:\Python\x.x
, where x.x
is the Python Version (e.g., 3.6
, 3.7
, pypy3.7
, etc.)
First, you have to install pyenv
.
List all available Python versions pyenv install -l
Select the versions you want to install. I recommend only installing the latest versions that starts with 3.6
, 3.7
, 3.8
, 3.9
, and pypy3.7
.
Then you have to make the non-PyPy ones available globally, for example: pyenv global 3.8.8 3.6.13 3.7.10 3.9.2 system
Then in the cloned repo, add .python-version
file containing:
3.8.8
3.6.13
3.7.10
3.9.2
pypy3.7-7.3.3
(The first line will be the "default" Python used when inside the repo directory.)
Exit the directory and enter the directory.
Install tox