In VS Code (Windows), my python interpreter points to version 3.11.
python -V
in terminal gives me Python 3.11.0
I create a virtual environment with python3 -m venv virtual
called virtual, and activate it with .\virtual\Scripts\activate
.
Now in my environment, checking python -V
gives me Python 3.9.13 instead.
How do I get venv to create a Python 3.11 environment?