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 [SOLVED]
Date: Tue, 10 Jul 2018 13:21:19
Message-Id: 0e8cd149e1b1cdd6b7ebd48cfaddf19f@xvalheru.org
In Reply to: Re: [gentoo-user] how to set python version for one user by pat@xvalheru.org
1 On 2018-07-10 14:09, pat@××××××××.org wrote:
2 > On 2018-07-10 11:22, Helmut Jarausch wrote:
3 >> On 07/10/2018 10:23:05 AM, pat@××××××××.org wrote:
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 >> A simple method would be to set up the PATH for this user to prepend a
18 >> local folder,
19 >> .e.g $HOME/bin
20 >>
21 >> Then copy (or symlink) the desired Python version from /usr/bin to
22 >> that
23 >> folder under
24 >> a different name (i.e. without the (full) version number)
25 >>
26 >> Helmut
27 >>
28 >>
29 >
30 > Thanks I'll check this.
31 >
32 > Pat
33 >
34
35 Thanks Helmut, it works.
36
37 Pat
38
39 ----------------------------------------
40 Freehosting PIPNI - http://www.pipni.cz/