[opensource-dev] specifying wich python binary to use?
Lance.Corrimal at eregion.de
Sat Sep 22 07:53:27 PDT 2018
Am Samstag, 22. September 2018, 16:00:31 CEST schrieb Henri Beauchamp:
> On Sat, 22 Sep 2018 15:43:14 +0200, Lance Corrimal wrote:
> > I have python 2 and python 3 installed on my system, is there a way to
> > specify which python version autobuild should use? by default it tries
> > python3, which fails.
> Depending on your distribution, you may specify (or not) which Python
> version is to be used when invoking 'python', with: alternatives --config
looked into that already, didn't work.
The weird thing is, /usr/bin/python already points at /usr/bin/python2, but
autobuild still picks up python 3...
> If it does not work, you may trick the build system by creating a "python"
> link to the python2 binary and then changing the PATH so that your link is
> found first. E.g. from a terminal:
gonna try that. Why didn't I think of that myself (no I do not want the
obvious answer :P)
More information about the opensource-dev