Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how to set python version for one user
Date: Tue, 10 Jul 2018 22:23:50
Message-Id: CAJ0EP43XzyM24-U_71rMpvaFHpOTABpHDJcnodomQQ331tBFhQ@mail.gmail.com
In Reply to: [gentoo-user] how to set python version for one user by pat@xvalheru.org
On Tue, Jul 10, 2018 at 4:23 AM,  <pat@××××××××.org> wrote:
> Hi, > > I need to set specific python version to a user and I don't want to set it > up for whole system. Is it possible? If so how to do it. All I found is > about setting for whole system.
On Gentoo, you can set the EPYTHON environment variable. floppym@naomi ~ % python --version Python 3.6.6 floppym@naomi ~ % export EPYTHON=python2.7 floppym@naomi ~ % python --version Python 2.7.15