Reputation: 55
I'm wondering how to install two different versions of a module for python. I host some scripts on a server and some particular ones require older version of the module because some things just doesn't work in the newer version and vice versa, some things doesn't work on the older version.
I know i can use pkg_resources and require a certain version, but if i try to install and use another version it just replaces the other one.
Upvotes: 1
Views: 235
Reputation: 56
Easiest solution would be to use virtual environments for one or both of your scripts. This is however not recommended in the long run if you want to scale and manage. You should switch up the script using the older version or move to something like a docker based solution.
Upvotes: 2