I am pretty early in my coding career, and I'm trying to understand how the programs I write are integrated with my computer and the virtual environment. I am specifically curious about where pip installed packages exist in my computer's memory.
I use python 3.9 on the latest version of PyCharm.
For each project I start, PyCharm seems to set up and save a copy of a new virtual environment every time. Each new package I download in a project appears to have a copy of itself saved in the venv as well.
Is this an accurate understanding of what is going on? Is the environment and packages and all their code being copied and saved every time, or is it pointing to something behind the scenes to improve memory-efficiency?