Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install python3-devel on red hat 7

I am trying to install something in my virtual environment, which uses anaconda python 3.6. I get the gcc failed with exit status 1, hinting on the absence of the right python3-devel package, as described in error: command 'gcc' failed with exit status 1 while installing eventlet.

To fix the error, I tried to install the python3-devel package on my server running RHEL 7.3. I did yum install python3-devel, but got a 'package not found' error. Then I found https://serverfault.com/questions/710354/repository-for-python3-devel-on-centos-7, which hints to the python34-devel package in the EPEL repository. I installed it using yum, but upon trying to install something in my virtual environment, I still get the gcc failed with exit status 1 error.

Does someone know how I can fix this? All help would be much apprechiated.

like image 216
sequence_hard Avatar asked Mar 27 '17 13:03

sequence_hard


People also ask

What is python3 devel?

Package: python3-develPython combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface.

Does RHEL 7 support python3?

Install Python 3 on RHEL 7 with the yum package manager To install Python 3 with apt is very simple, and it will install in very few steps only. If your screen also showing output like above, means Python 3.8 is installed successfully on your Red Hat system.


1 Answers

Search for the package in yum , use the following command:

yum search python3 | grep devel 

It will list all the available devel packages. The result will be somewhat like this

python3-cairo-devel.x86_64 : Libraries and headers for python3-cairo python3-devel.x86_64 : Libraries and header files needed for Python 3                      : development python34-devel.x86_64 : Libraries and header files needed for Python 3                       : development 

Then you can choose the package you want to install from the list , suppose if you want to to install python3-devel , execute the following

yum install -y python3-devel.x86_64 
like image 111
shahin Avatar answered Sep 26 '22 22:09

shahin