Using different versions of Python on Windows
If you have several versions of Python installed, you should be able to list them with py --list
, which yields something like:
You can then work with the different versions by writing py -{version_number}
. So to install pip
for an earlier version of Python, you would write: py -3.9 -m ensurepip --upgrade
.
Another alternative is using pyenv
: github.com/pyenv/pyenv