This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Updating Python in my folder on the cluster

Hey Again Folks,

I wanted to use pathoscope2 in our cluster environment but it requires at least python 2.7.3 or higher. Our cluster has python 2.6.6 installed so the program isn't running. And I think they have their reasons to use this version of python.

Is there a possibility that I can install a newer version just in my folder? Or is there another way?

With kind regards,

Julian

python cluster update

Hi,

Usually, more than one version of Python is installed. Are you sure Python2.6 is the only one available on this cluster ?

It seems so. When I type in python and press the tab key for auto completion it is not showing a never version.

That might happen if quirky naming clashes exist. Try module avail python

You might see if they have different python versions available as modules. That's not uncommon on clusters. You can then just module load ... the appropriate version.

Extending Devon's answer, type module avail python and hit return. You should see a list of available versions.

Thanks a lot for the fast answers guys. The module avail python and module load ... saved my day.

Have a great day and best wishes from northern Germany :)

Glad it helped. Best wishes to you too!

1 answer

First, please check if 2.6 is the only version of python installed on the cluster (HIGHLY improbable). Extending Thibault's and Devon's answers, type module avail python and hit return. You should see a list of available versions. Then use module load python/2.9 (or an equivalent command) to load the version you need. I should have thought of this earlier.

Either use virtualenv (best option) or install to your home directory as shown here: http://scicomp.stackexchange.com/questions/2987/what-is-the-simplest-way-to-do-a-user-local-install-of-a-python-package

Log in to answer this question.