How to install Python3.6 accessible to local user and not root?

Issues related to applications and software problems
Post Reply
v.terala
Posts: 1
Joined: 2017/12/12 22:11:56

How to install Python3.6 accessible to local user and not root?

Post by v.terala » 2017/12/12 22:19:17

Hi Guys,

I want to install Python3.6 into my local user account and this installation must not effect the other user accounts and root.

Is there anyone who knows an answer to this?

Senario:

1) I have root, test and dev as 3 user accounts in my centos.
2) Now I want to install Python3.6 into my test user
3) after installation when i do where command and check the version in test it should give me python3.6 or is there a way to install python into a specific folder that is accessible just by that user?
4) When version and where command is used in root and dev it must give the default version of python.

Can anyone help me with this?

Thanks Vik

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: How to install Python3.6 accessible to local user and not root?

Post by stevemowbray » 2017/12/13 11:31:07

Install it in parallel using e.g. the IUS https://ius.io/ packages. This doesn't affect the system python. Then just call python3.6 when you want to use it, or make an alias for python for the specific user.

Post Reply