I would like to use a different version of Python (3.8.0) and a dedicated virtual environment in a subfolder of a VSC project/work space. Is this possible? Any pointers would be very much appreciated. Thus far U tried to follow this using pyenv.
I ran:
pyenv local 3.8.0
python -m venv .venv
.\.venv\Scripts\activate
in the VSC terminal but when I run:
(.venv) PS C:\blaproject> python -V
I still get:
Python 3.10.4
Is there a step I missed? There is a .python-version file containing 3.8.0 but ..venv\Scripts\activate does not seem to use this and stick, in my case, with Python 3.10.4?




