0

I have python 3.11.2 installed on my local machine. For a specific project I need to use python 3.9.13

So I installed pyenv, created a new directory and isntalled python version 3.9.13 in that directory. In the same directory I created a new virtual environment by doing: .\.venv\Scripts\activate. After that in Visual Code I selected the correct python version which is 3.9.13. Everything looks good as you would say. However, when I do python -V in my command line in VS code (inside the virtual environment) I receive the following output:

enter image description here

Mgoga
  • 3
  • 2
  • How did you create the `virtualenv` (not activating)? Dose this [anwser](https://stackoverflow.com/a/69073999/15174775) help? – HALF9000 Mar 09 '23 at 12:45

1 Answers1

0

You can create virtual env and add specific python version in on run. For example:

virtualenv venv --python=python3.9.13
maciek97x
  • 2,251
  • 2
  • 10
  • 21