How do venvs actually work? The python "binary" inside a venv is just a symlink to the system wide python. The activate script effectively sets VIRTUAL_ENV and prepends PATH. So why can't I have the same effects by just setting those two environment variable manually? Why can't modules of packages installed inside the venv be found by gunicorn when setting both env variables in a systemd unit and starting gunicorn that was installed by apt?
#python #ubuntu #gunicorn
If you have a fediverse account, you can quote this note from your own instance. Search https://chaos.social/users/sophie/statuses/115271121956966852 on your instance and quote it. (Note that quoting is not supported in Mastodon.)