r/PythonLearning • u/Crazy-Leek-5010 • Sep 19 '26
POV: You’re still writing requirements.txt by hand
Writing requirements.txt by hand is frustrating as hell.
While searching for a solution, I just discovered uv.
So I tried using uv instead of pip, and holy shit, it's fast. It also makes dependency management way easier, and you can generate a requirements.txt when you need one.
Bro, if you don't hate yourself like an Arch user, please give uv a try.
It's fast, simple, and honestly pretty dammmmn nice.
(venv) $ uv pip install <module_name>Give it a shot.
0
Upvotes
10
u/ProgramsFun Sep 19 '26
how did you discovered uv but not pip freeze while finding solution
17
u/oclafloptson Sep 19 '26
pip freeze can be used to automatically generate the requirements.txt without any 3rd party installation
2
u/thuiop1 Sep 19 '26
Sir this is 2026, you are supposed to have a pyproject.toml, not a requirements.txt. Also using only the pip interface of uv is using 10% of its power.
5
u/0xQan Sep 19 '26
pip freeze crying in the corner :(
4
u/Unique_Low_1077 Sep 19 '26
pip freeze > requirements.txtThat said
uvdoes have a lot of neat features. I still preferpiptho3
u/SnooCalculations7417 Sep 19 '26
pip freeze > requirements.txt
1
u/JaleyHoelOsment Sep 19 '26
you were writing requirements.txt by hand?? i’m not sure anyone else has ever done that my lad
1
u/code_tutor Sep 19 '26
I don't use Arch btw
1
u/ninhaomah Sep 19 '26
uv add