About Using Multiple Python Versions
First of all, install pyenv using https://github.com/pyenv/pyenv-installer:
1 |
|
Append these lines to ~/.zshrc
or ~/.bash_profile
depending on your shell:
1 2 3 |
|
List available Python versions for installation with:
1 |
|
To install Python 3.10.2 you would:
1 |
|
It will be installed to ~/.pyenv/versions/
.
To create a new virtual environment with Python 3.10.2 you would run this in a directory where you want your venv
directory:
1 |
|
Analogously you can set up other Python versions.
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You