1

We have a cluster consists of 5 machine for running Apache spark.

One of the machine the default python is 2.7 and the command which python output the following path /usr/local/bin/python

The other 4 machine, the default python is 2.6 and the command which python output the following path /usr/bin/python.

How can I change the python on the first machine to be like the others?

1
  • Do you have python 2.6 installed on first machine? If yes, check your $PATH variable to see if /usr/bin is put at the first order.
    – cuongnv23
    Apr 29, 2016 at 3:35

1 Answer 1

0

I presume that the machines have different version of the same OS or even different OS.

You could manage different version of Python using for example virtualenv or virtualenvwrapper.

After that you install the packages you want in your /env installation/

more info about virtualenv

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .