My environment doesn't load

Chris Angelico rosuav at gmail.com
Tue Oct 9 11:34:10 EDT 2018


On Wed, Oct 10, 2018 at 2:32 AM <ftg at lutix.org> wrote:
>
> I rsynced the full local project directory (which contains the virtualenv dir) to a remote server.
> And there I couldn't enter into it.
> However, obviously apache2 achieved to...

Not so obvious. It's possible Apache is ignoring the venv and just
running the app in its own environment.

As others have said, you should maintain a requirements.txt and then
create a virtual environment on the target system. Since you're on a
recent Python, ignore the old "virtualenv" package, and use "venv"
from the stdlib.

ChrisA



More information about the Python-list mailing list