You already know something about sys
and pathlib
. Now it's time to learn about venv
.
venv
creates virtual environments (which are a more lightweight than a virtual machine, but they're similar in how they isolate their contents from the rest of your system.
This lets us install third-party libraries in a sane way.
If you don't use them, things get cluttered quickly.
Please read/watch the following: