2 ms·
This is fine. F-strings are very useful in the absence of something more well-designed. My main issue with Python is the whole dependency management/venv situa
by runjake 3y ago
This is fine. F-strings are very useful in the absence of something more well-designed.
My main issue with Python is the whole dependency management/venv situation. It's fine for single app/web-app deployment but when I have a hundred different Python projects on my computer and I need to easily run scripts from them several times a day. My solutions are... not elegant. My current scheme is to start moving my most frequently-used scripts into a monorepo under a single venv.
(recommendations happily accepted)
- roland35 3y agoI use dev containers for any mildly complicated project. For simple scripts I try to use as few dependencies/late version features as possible
- nextos 3y agoNix works wonderfully well for this. As a bonus, it will solve the problem not only for Python, but also for any other dependencies you may have. The only two package managers that have never given me a single headache when installing Python + Torch + CUDA are Nix and Pacman. Nix will only become a bit problematic to use if you need to package exotic stuff on your own that makes too many assumptions about Unix FHS.