[Tutor] A venv question - multi-user ?

Mats Wichmann mats at wichmann.us
Thu Dec 12 10:57:38 EST 2019


On 12/11/19 11:09 AM, Dan White via Tutor wrote:
> Is there such a thing as a multi-user virtual environment ?
> All the instructions create a local file tree that belongs to the user 
> that created it.

There's nothing to prevent it. Put it in location that is not user 
specific (on linux you could use something like /usr/local/share), and 
make sure it's readable by the group the users are in.  The mechanism 
itself doesn't care, you just find where it's installed and run the 
activate script appropriate to the shell you're using, and you're good 
to go.

But the idea of a virtualenv is to isolate a specific bit of work, so 
this may not be a really great idea - what if some other user installs 
packages via pip that you didn't want, or changes the version of such 
packages, etc.




More information about the Tutor mailing list