I have Python 3.10 (64-bit) on my computer. And I use VS Code. I need to install Python 3.8 (64-bit) because I need to work with curses and it only works with Python 3.8.
>Solution :
Virtual environments are used for that.
I use miniconda to manage my python versions.
After installing it, you can simply create an environment with python 3.8 like this:
conda create -n python38 python=3.8
Afterwards you can activate the create environment like this
conda activate python38
And install a wide variety of packages like so:
conda install matplotlib pandas numpy