LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2017, 06:12 PM   #1
v.terala
LQ Newbie
 
Registered: Dec 2017
Posts: 2

Rep: Reputation: Disabled
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
 
Old 12-13-2017, 12:02 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,289

Rep: Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207
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.
 
Old 12-14-2017, 12:19 AM   #3
v.terala
LQ Newbie
 
Registered: Dec 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-14-2017, 04:02 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,289

Rep: Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207Reputation: 4207
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.
 
Old 12-14-2017, 11:22 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
In my experience, it is "best" to leave cPanel components alone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pam_access(sshd:account): access denied for user `local' from `server' neogeo Linux - Newbie 2 07-24-2017 01:23 AM
[SOLVED] how to start python3.6 interpreter just by typing python in terminal not python3.6 bmohanraj91 Linux - Newbie 4 05-10-2017 08:51 AM
Check type of input from user - Python3.4/Tkinter leprechaun3 Programming 1 08-22-2016 01:48 AM
After upgrade python3.4 to python3.5.1 , not able to install packages "request" though pip3 YOGESHAS87 Linux - Software 1 08-03-2016 11:38 PM
Need to make local user account with administrative rights wilmapayne Other *NIX 2 04-22-2009 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration