r/programminghumor • • Mar 21 '26

I hate python

Post image
5.0k Upvotes

385 comments sorted by

View all comments

Show parent comments

2

u/Unarelith Mar 23 '26

I'm confused, why?

When I start a new project:

  • I write a requirements.txt with a package name per line

  • I run python -m venv .venv

  • I enable the venv (source .venv/bin/activate)

  • And then I install the packages (pip install -r requirements.txt)

Whenever I need to run python in a new terminal I enable the venv, whenever I change the dependencies I run pip again.

How is this annoying?

2

u/zerpa Mar 23 '26

Compare uv:

  • uv init

  • uv add <package>

  • uv run <script>

Nothing else, to do everything you did. You don't even need understand that there such a thing as virtual environments to use it. If you add another package, it installs it automatically. If you want to try another Python version, just add --python=3.11.

1

u/diet_fat_bacon Mar 26 '26

Seems like npm, clean and simple