Can't install python-dev on centos 6.5

LinuxCentosInstallationYum

Linux Problem Overview


Can't install python-dev on centos 6.5. Yum says "No package python-dev available.". No graphical solutions please.

Linux Solutions


Solution 1 - Linux

On CentOS, the python development libraries are under the name python-devel, not python-dev.

So you should use

sudo yum install python-devel

to install them on your CentOS system.

You can search the repositories available to you using the yum search xxxxx command, where xxxxx is the name or part of the name of the package you are looking for.

Further, you may need to specify the architecture (such as python-devel.x86_64), although in my experience yum will automatically install the package that is appropriate for your system. Again, yum search will show you what is available in the repositories you currently have installed/enabled.

Solution 2 - Linux

Did you try

yum groupinstall -y 'development tools'

Did you try to download the RPM package and install it?

Did you try to install python-pip then issue pip install python-dev?

Solution 3 - Linux

For anyone looking to install python-devel now, you can use yum install platform-python-devel.x86_64

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser3616331View Question on Stackoverflow
Solution 1 - LinuxEthan HohenseeView Answer on Stackoverflow
Solution 2 - LinuxMaxView Answer on Stackoverflow
Solution 3 - LinuxVishal DekaView Answer on Stackoverflow