W
W
weranda2021-10-29 11:08:27
Python
weranda, 2021-10-29 11:08:27

Does the virtual environment completely contain the files of a certain version of Python, or are there only some auxiliary files?

Greetings.

I thought about the device of the virtual environment created by the command python -m venv folder_name. How it turns out: first install Python on the system, and then create a virtual environment. What is created there in the virtual environment and how does it work? Everything that is necessary for independent work (everything is there, completely), even if you remove the main Python library, then the virtual environment can be launched with the commandsource venv/bin/activateor if you remove the main library, the virtual environment will not work when it starts? Then it turns out that auxiliary files are created in the virtual environment folder, but the interpreter is not inside the virtual environment, but along the path that was specified during installation, and some (various) calls from the virtual environment folder somehow interact with files from the main folders?

Help understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alan Gibizov, 2021-10-29
@weranda

Here you are a lazy person ... really you don’t want to try, search, or read in the docks ?
It clearly says that venv creates folders and in them - symlinks to binaries or executable files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question