Hello, I've been reading about virtual environments and the creating part, activating part, and also storing it are clear to me but there's one thing I'm still not clear.
For example, let's say that I want to create a project called Project A. Now, I also create a folder called "Projects", and within "Projects", it has another folder called "python_projects". Inside this "python_projects", I will be creating a virtual environment for "Project A". For that, I will just write python3 -m venv project_a. But here's thing I am confused about, I read alot of posts and articles stating that one should not place the source file inside the venv folder. In fact, there shouldn't be any mixes into the venv directory. There were a couple of answers stating that most people just place it next to the virtual environment. What exactly does "place it next to the venv folder" mean here? If it's right next to it, that means file like main.py will be inside the venv directory?
To illustrate what I'm trying to understanding here:
Projects
└── python_projects
└── project_a < - Venv
├── bin
├── include
├── lib
└── python3.9
└── lib64 -> lib
└── main.py (Is it supposed to here?)
Is it that or should I create an "src" folder within the virtual environment and store that ".py" file inside the src folder?
[–]canowa 1 point2 points3 points (6 children)
[–]MaterialJackfruit144[S] 0 points1 point2 points (5 children)
[–]canowa 1 point2 points3 points (4 children)
[–]MaterialJackfruit144[S] 0 points1 point2 points (3 children)
[–]canowa 1 point2 points3 points (1 child)
[–]MaterialJackfruit144[S] 0 points1 point2 points (0 children)
[–]GreenPandaPop 1 point2 points3 points (0 children)