How to install python3.6 into a local user account in centos6?
Hi Guys,
I was wondering if there is a way to install Python to a specific user account in centos? For example: If there are 3 user accounts root, dev, test and they already have Python 2.7 installed. Now I want to install Python 3.6 into test user and make it avaliable only for that user and no one else. The installation of Python3.6 should not effect the root user and the dev user. Can anyone help me with this one? Thanks in advance Regards Vik |
python 2.7 and 3.x may exist together, that is not a problem (for any user). I mean all the programs should be able to use the proper version, there should be no any conflict. So in general installing python 3.6 will/should not affect anything. But probably you have a special case, please describe it better.
From the other hand you are not able to hide anything from root, so if that is installed and executable root can use it. Additionally you may try to play with the variable PATH which can be set for every user differently and will specify the location of executables. |
Hi Mate,
Thanks for your reply. To make it more precise please find the details below. We host all our domains with a 3rd party company. And the cPanel associated with the Server CentOS only supports Python2.7. BUt with my case I want to install Python3.6 only onto one of the account hosted on that server. So this should not effect the other accounts and the root account. Because if this effects the other accounts and root then the managed support for that server comes to an end as the server's cPanel does not support Python 3.6. Hope you understand the situation. I would really appreciate of you can help me on this. Thanks Vik |
I do not really understand. I think that cPanel will use python2.7 anyway, even if you install python3.6.
You can configure linux (docker) containers with python3.6. |
In my experience, it is "best" to leave cPanel components alone.
|
All times are GMT -5. The time now is 11:24 AM. |