This is how best to make python virtual environment in VScode https://code.visualstudio.com/docs/python/environments
make sure to have Python 3.9.2 installed before following these steps. It does not need to be in the path just installed and you can select it has the python for it.