Reputation: 1277
How can I deploy and host multiple python projects with different dependancies on the same server at the same time?
Upvotes: 9
Views: 24845
Reputation: 599610
It's not true of course that only one virtualenv can be activated at once. Yes, only one can be active in a shell session at once, but your sites are not deployed via shell sessions. Each WSGI process, for example, will create its own environment: so all you need to do is to ensure that each wsgi script activates the correct virtualenv, as is (in the case of mod_wsgi at least) well documented.
Upvotes: 14
Reputation: 7297
Use virtualenv for python. You can can install any other version of python/packages in it, if required.
Upvotes: 0