Venvs Part 8 - Folder Structures Continued

Venvs Part 8 - Folder Structures Continued

So the venv doesn't install a lot of the Python standard library modules. Instead, these get pulled from the global Python's core installation packages, I believe. "Your virtual environment reuses Python's built-ins and standard-library modules from the Python installation you used to create your virtual enviornment." "In a later section, you'll learn how the virtual environment achieves linking to your bas Python's standard library." Okay then.

I'm not really sure how it does that. But yes. Thank you. Basically, doing this speeds up the installation of new environments as it makes the virtual environments more lightweight. It means that we do not have to copy all of the standard Python packages into the new virtual environment. You can add more arguments to the creation of your virtual environment to give it access to the base installation's site packages - OKAY THEN BRO WHAT ARE THOSE. The site packages folder is where Python installs third-party libraries by default. Global site packages are the site packages directory of your system (or "base") Python install. It says "a virtual environment is basically a folder structure with a settings file." Um, okay then.

Whatever that means. Whatever. It says here of the venv that:

"It may or may not come with pip preisntalled, and it has access to the source Python's standard-library modules while remaining isolated." And now the tutorial goes into this all further. Your venv can import global packages from the main Python folder - but not vice versa. I literally give up on this. I will move on to the next section

an image of pink dots and line representing technology

Okay so what's next then? The next section is called "How does a virtual environment work?" I still haven't gotten onto the coding stuff yet, which is slightly concerning. But it has been a good lesson 

Comments

Popular posts from this blog

Hello World

“But yesterday, I heard God say, you were born to be the one…”

In the Water, I find Fire