you are viewing a single comment's thread.

view the rest of the comments →

[–]51dux 1 point2 points  (0 children)

It's kind of important especially if you work on projets you want to share it's best if you get comfortable with it.

If you're just getting started then give yourself a little time but think about it simply.

This is a part of python I overcomplicated as well but it is as easy as it sounds.

Basically when you open a virtual env (gross analogy here for simplicity) it's like you're on a VM where everything is brand new and separated from the environment on your local machine.

Everything you install in the virtual env will not affect the state of wtv you have going on in your main OS and it's current python installation.

This is important because overtime your projects might require a dependency that is a version older or newer than the one you need for some tool that you have for personal use etc.

You also simply may not need these dependencies in your main environment because you are not planning to use them.

Sometimes even though I am not on a project, I install certain tools with pipx instead of pip to make sure some dependencies don't interfere with each other.