How to install python3-devel on red hat 7

I am trying to install something in my virtual environment that uses anaconda python 3.6. I get the gcc failed with exit status 1, hinting at the lack of the correct python3-devel package, as described in error: the gcc command failed with exit status 1 when installing eventlet .

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

Does anyone know how I can fix this? All help would be very helpful.

+6
source share
1 answer

Locate the package in yum, use the following command:

yum search python3 | grep devel

devel.

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

, , , python3-devel,

yum install -y python3-devel.x86_64
+16

Source: https://habr.com/ru/post/1016073/


All Articles