this post was submitted on 28 Nov 2024
249 points (89.0% liked)
Programmer Humor
32581 readers
942 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
yeah, all that setup sucks even after being writing python for years.
Nowadays I've been running every project with
uv
and it's a much better and faster experience, usually in 3 steps: 1. initialize, 2. add dependencies, 3. run project:Then in future runs (as long as you have the pyproject.toml), you can just do
uv run main.py
(shorthand touv run python main.py
), even when there's no venv created. No more activating virtual envs. No more long interpreter installations. No more accidentally messing with system's packages or the PATH variable. With theuv.lock
that's also a lot more reliable to reproduce thanrequirements.txt
and similar.