Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Learning my lesson that Python virtual environments aren't always movable (utcc.utoronto.ca)
2 points by ingve 3 months ago | hide | past | favorite | 1 comment


When it comes to venv-related stuff I feel like Chris Siebenmann has been gradually independently discovering things that are fairly well known in the right circles.

A properly relocatable venv would require redesigning up front, along with cooperation from installers (i.e. they need to not put un-relocatable stuff into the venv; specifically, by not hard-coding the venv's Python symlink's path into generated wrapper scripts). (Or a relocation tool could perhaps fix the wrappers.)

I actually do have some designs for this. It definitely should be possible.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: