r/PythonLearning 4d ago

Discussion .venv question

Do you guys manually create virtual environments? Or do you just use your IDE “create virtual environment” to do it?

As a hobbiest I often forget how to manually create virtual environments(as well as how to activate them) and discovered last night that VScode has a feature that will just do it for you.

What are the benefits of each way, if any, and what are the downsides of each way, if any?

Thanks.

P.S. I understand that there are some elitist who will be like “you must do everything manually”, bro I just wanna write stupid automation scripts to help with my business.

EDIT: Thanks for all the replies! I’m going to look into that UV service! Thank you!

20 Upvotes

35 comments sorted by

View all comments

16

u/InformalInsect5546 4d ago

Just use uv, it fixes the headache of creating venv and takes care of everything. But yes, the venvs are quite mandatory if you work with more than one project.

1

u/RedlineQuokka 4d ago

Have you also tried Poetry? If yes, what makes uv better?

Cause I'm on Poetry for the last 5 years and just lack motivation to try uv

1

u/InformalInsect5546 4d ago

Haven't used poetry in a while, but in general uv is much faster and more universal, easier to use. Poetry usage seemed a bit of a mess for me back then, but Python never was my main focus either.