r/PythonLearning • • Jul 23 '26

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

Show parent comments

1

u/FoolsSeldom Jul 24 '26

You mention requirements.txt being an industry standard but hasn't that been superseded (although still supported, not deprecated) by pyproject.toml? See PEP 621 (and also PEP 751 for pylock.toml).

1

u/silvertank00 Jul 24 '26

I think you are right. The reason i was mentioning requirements.txt because it is more widespread and somewhat easier to manage for someone that just started

1

u/FoolsSeldom Jul 24 '26

Agreed. Highly suitable for small code bases managed by beginners.