3 ms·
> uv will magically install and use the specified modules. As long as you have internet access, and whatever repository it's drawing from is online, and you ma
by kardos 11mo ago
> uv will magically install and use the specified modules.
As long as you have internet access, and whatever repository it's drawing from is online, and you may get different version of python each time, ...
- maccard 11mo agoIf I download python project from someone on the same network as me and they have it written in a different python version to me and a requirements.txt I need all those things anyway.
- 85392_school 11mo agoYou can constrain Python version: https://peps.python.org/pep-0723/#:~:text=requires-python https://peps.python.org/pep-0723/#:~:text=requires-python
- dragonwriter 11mo agoI mean, if you use == constraints instead of >= you can avoid getting different versions, and if you’ve used it (or other things which combined have a superset of the requirements) you might have everything locally in your uv cache, too. But, yes, python scripts with in-script dependencies plus uv to run them doesn't change dependency distribution, just streamlines use compared to manual setup of a venv per script.
- tclancy 11mo agoAnd electricity and running water and oh the inconvenience. How is this worse than getting a script file that expects you to install modules?
- gkfasdfasdf 11mo agoYou can specify python version requirements in the comment, as the standard describes