2

I work in an office where python scripts are run in a server that has python 2.6 version installed.

We cannot switch to other versions since some scripts rely on it.

On the other hand, we need to run scripts that require other more recent versions of python. Is it possible to install on the same server two or more different versions?

If so, what would be the issues correlated with it? Is there the risk that versions get messed up failing the executions or somthing similar?

P.S. the server runs Linux

Blue Moon
  • 4,421
  • 20
  • 52
  • 91
  • 4
    You can definitely do this. Look into using Python virtual environments (`virtualenv`) to make it easier. Related: http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv – aganders3 Sep 16 '15 at 15:27
  • Yeah, python 2.x and python 3.x are not in conflict. – Remi Guan Sep 16 '15 at 15:27
  • what if versions are 2.6 and 2.7 – Blue Moon Sep 16 '15 at 15:27
  • 1
    `virtualenv` is like splitting your machine into rooms with different python versions in each – taesu Sep 16 '15 at 15:31
  • @BlueMoon no problem using 2.6 and 2.7 on the same machine but you want make sure you dont mess with the system one (2.6 in your case) - but virtualenvs do solve the problem, really. – bruno desthuilliers Sep 16 '15 at 15:33

0 Answers0