Gentoo Archives: gentoo-user

From: pat@××××××××.org
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how to set python version for one user
Date: Tue, 10 Jul 2018 12:08:59
Message-Id: d508d3f245639a1a2ec6b376f2dddab9@xvalheru.org
In Reply to: Re: [gentoo-user] how to set python version for one user by Alexander Kapshuk
1 On 2018-07-10 11:19, Alexander Kapshuk wrote:
2 > On Tue, Jul 10, 2018 at 11:23 AM <pat@××××××××.org> wrote:
3 >>
4 >> Hi,
5 >>
6 >> I need to set specific python version to a user and I don't want to
7 >> set
8 >> it up for whole system. Is it possible? If so how to do it. All I
9 >> found
10 >> is about setting for whole system.
11 >>
12 >> Thanks
13 >>
14 >> Pat
15 >>
16 >>
17 > How about this?
18 > echo alias python='python2.7' >> ~user/.bash_profile
19 >
20
21 Well, this one doesn't work in case at the beginning of the python
22 script is:
23 #!/usr/bin/env python
24
25 I have a "lot of scripts" with this. What I've thought there will be
26 possibility to setup python version per user similar as for gcc (I
27 think).
28
29 Thanks for help
30
31 Pat
32
33 ----------------------------------------
34 Freehosting PIPNI - http://www.pipni.cz/