4 ms·
Ridiculous post: The author says that a normal route would be: - Take the proper route: - Create a virtual environment - pip install pandas - A
by greatgib 2y ago
Ridiculous post:
The author says that a normal route would be:
- Take the proper route:
- Create a virtual environment
- pip install pandas
- Activate the virtual environment
- Run python
Basically, out of the box, when you create an virtual it is immediately activated. And you would obviously need to have it activated before doing a pip install...
In addition, in my opinion this is the thing that would sucks about UV to have different functions being tied to a single tool execution.
It is a breeze to be able to activate a venv, and be done with it, being able to run multiple times your program in one go, even with crashes, being able to install more dependencies, test it in REPL, ...
- hamandcheese 2y agoYou can still use traditional venvs with UV though, if you want.
- krick 2y agoUh, but then you don't really need uv, right?
- hamandcheese 2y agoNo, but it is insanely faster than pip.
- astronautas 2y agoHey, I actually made a silly mistake in my post, indeed you first activate the environment and then install stuff in it. Fixed! I disagree though it is activated immediately, or at least to me with venv I always have to activate it explicitly.