Hacker News new | ask | show | jobs
by zahlman 331 days ago
If you use uv you are using virtual environments. You're merely being shielded from a few minutes worth of education about how they work (https://chriswarrick.com/blog/2018/09/04/python-virtual-envi...).
2 comments

Well I also don't have to deal with the venv then, uv does it for me. Which I suspected is how it works, cause idk how else it would.
For some reason copying a venv directory causes problems with internal links. Fun all around.
The problem is twofold:

- all generated console scripts hardcode the path to python during creation for the shebang

- some of the binaries generated by install processes can link to absolute paths in the venv

Conda does quite a bit of work under the hood to reduce disk space and ran into related issues described here: https://docs.conda.io/projects/conda/en/stable/dev-guide/dee...