Skip to content

Multiple Python Versions

Pandu E POLUAN edited this page Mar 4, 2021 · 1 revision

This is a draft page, undergoing edits.

Some guidelines to enable multiple Python versions on your system

On Windows

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.)

On Linux

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

Clone this wiki locally