How can I use multiple python virtual environments on the same server

How can I deploy and host multiple python projects with different dependencies on the same server at the same time?

+4
source share
2 answers

It is not true, of course, that only one virtualenv can be activated at once. Yes, only one can be active in a shell session right away, but your sites are not deployed through shell sessions. For example, each WSGI process will create its own environment: so all you have to do is ensure that each wsgi script activates the correct virtualenv, as it is (in the case of mod_wsgi at least) is well documented .

+7
source

Use virtualenv for python. If necessary, you can install any other version of python / packages.

0
source

All Articles