Installing Python 3.6.3 on CentOS7.3

General support questions
Post Reply
epipko
Posts: 3
Joined: 2017/10/06 18:31:21

Installing Python 3.6.3 on CentOS7.3

Post by epipko » 2017/10/11 19:01:56

I need to install latest version of Python and following this link: https://danieleriksson.net/2017/02/08/h ... on-centos/
When I run

Code: Select all

yum groupinstall -y "Development tools"
, I get the following:

Code: Select all

# yum groupinstall -y "Development tools"
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * epel: s3-mirror-us-west-2.fedoraproject.org
Warning: Group development does not have any packages to install.
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update
However, I can see this group in the list:

Code: Select all

# yum groups list
returns:

Code: Select all

Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * epel: s3-mirror-us-west-2.fedoraproject.org
Available Environment Groups:
   MATE Desktop
Available Groups:
   Additional Development
   Backup Client
....
   Desktop Platform Development
   Development tools
   Dial-up Networking Support
   Directory Client
....
Could someone provide some guidance, please?

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: Installing Python 3.6.3 on CentOS7.3

Post by Mike_Rochefort » 2017/10/11 23:36:44

Python 3.6 is not available in the standard repositories. Only Python 2.7 and 3.4 are. If you need higher versions, I suggest using the IUS repository and then installing python36u (can also do git2u for latest Git).

Also, if you're on CentOS, it should be Tools, not tools. How are you accessing Red Hat repositories?
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Installing Python 3.6.3 on CentOS7.3

Post by TrevorH » 2017/10/12 07:59:17

And looking at your yum output it appears that you have disabled the base and updates repos.

Do not attempt to replace the system python with your own. All the RHEL tools like yum will break and will not work.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply