M
M
Master Ruby2022-04-15 23:18:07
Python
Master Ruby, 2022-04-15 23:18:07

Why is a different version of python created in the virtualenv?

There is an operating version of Linux Mint, Python3.8 I
open a terminal, create a virtual environment using the command:
>> python3 -m venv venv
I open a project with VS code, virtual venv starts up and there the Python version is 3.9.9
Is this some kind of bug?
6259d2ed1d69d997717961.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-04-16
@Dunaevlad

python3 is a link to the system python, but you just need to explicitly specify the python version when creating venv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question