I found out myself how to run a python script with pythonbrew
properly!
According installation guide for pythonbrew (see: https://pypi.python.org/pypi/pythonbrew/), the following line should be used to run a script:
pythonbrew py myprogramm.py
However, I can run my script by using python
instead of pythonbrew py
:
python myprogramm.py
I cannot give an explanation for that, sorry. But maybe other people can. It is just working very well like this and I can use python and all packages normally!
Further instructions of how to use pythonbrew
, installing or switching between different version etc., see the link to the installation guide I posted above!
More details about pythonbrew
and usage (from my perspective of view):
The installation guide I mentioned explains step by step how to install pythonbrew
in your home directory (e.g. on a server) and helps to set up python on a system where you are not superuser (e.g. a server where you are allowed to run scripts but not to execute any further installations!).
I had the problem that I needed a more up to date python-version and the server where the data is located is equipped with an older version. The other half of the story is that I also needed some packages (e.g. h5py
or cosmolopy
) which are also not installed at the server.
For me the easiest and perfectly working solution to that problems was to use pythonbrew
and install it at my home directory on the server!