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.
Community♦
![Install python 3.6 centos Install python 3.6 centos](/uploads/1/2/3/7/123751616/752463611.png)
Python is a popular, stable, and well-performing programming language. It is used in many different Linux applications, including CentOS 7. CentOS 7 uses Python 2.7.5, but as Python has updated to 3.7.2., this can create challenges. If the default version of Python is updated, it can break base system components like the yum package manager. Home » python » Installing Python 3 and using venv on CentOS 7. Installing Python 3 and using venv on CentOS 7. This post has been superseded for my needs by Pipenv. CentOS 7 doesn’t have Python 3 installed by default. Add the following community repo to make it available and then install python36u, python36u-pip,.
sequence_hardsequence_hard
2 Answers
Search for the package in yum , use the following command:
It will list all the available devel packages. The result will be somewhat like this
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
shahinshahin
There are no
python3-*
packages from Red Hat in Red Hat Enterprise Linux 6 or 7.
![Python Python](/uploads/1/2/3/7/123751616/350432705.png)
However there are
python3-*
packages available if you enable third party repos like EPEL or IUS. But, these are not supported by Red Hat. Chances are if you are running RHEL, your organization has a preference for supported packages.
You can get supported Python 3 packages from Red Hat via Red Hat Software Collections (RHSCL). Currently Python 3.6 is the newest available, the package name is rh-python36. Installing the RHSCL package will also install rh-python36-devel and a number of other packages.
See How to install Python 3, pip, venv, virtualenv, and pipenv on RHEL
Don't forget to install @development first, so you have gcc, make, etc. for building any dynamically loaded shared objects.
To install:
The blog linked above has lots of tips for working with Python, virtual environments, as well as software collections on Red Hat.
Rob T.Rob T.