Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're deploying to a server you'll want to pip install dependencies on the server. If you're using docker you'll want to pip install dependencies in your container. If you're deploying to an end users computer you'll want to use pyinstaller, which admittedly is not trivial to get working in all cases.


This is exactly my point. .venv/ needs to live in the project deployment directory, and needs a wrapper script to use the python binary/symlink therein.

Isolate the project from the python runtime it uses, and you'll always have the right set of packages installed.

None of this is perfect, but an in-tree .venv/ and convenience scripts seems to be the least-worst option.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: