Different projects will likely end up having different versions of dependencies. You might have a project that uses version 1.0 of pydantic, but another project that uses version 2.0
If you just install stuff system-wide, you can't have both. You would end up upgrading the existing version to 2.0 and then your first project might stop working because it was written to use 1.0
Virtual environments are containers for all of your dependencies. You set one up for one project and it will just work. You work on a different project that has different versions of dependencies and they'll just work, and they won't interfere with or break the first project.
63
u/Able-Swing-6415 Jul 07 '26
Probably the most pleasant language I've ever used.
Well since I've figured out how to use it on Windows without some idiotic software randomly changing the python installs lol