this post was submitted on 28 Nov 2024
461 points (88.6% liked)
Programmer Humor
38885 readers
6 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 6 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
uvand 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.lockthat's also a lot more reliable to reproduce thanrequirements.txtand similar.