Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install python27-devel on Centos 6.5

Tags:

I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7

yum install python27-devel 

doesn't work. How to install it?

like image 493
Deadly Avatar asked Apr 22 '14 09:04

Deadly


People also ask

Does CentOS 7 have Python 3?

Python 3 can be installed on most modern operating systems, including Windows and CentOS. In this article, we will outline how to install Python 3.9 on CentOS 7.

Does CentOS have Python installed?

The CentOS 7 Linux distribution includes Python 2 by default. However, Python 2 is going to reach EOL on January 1, 2020. While some legacy applications might require access to Python 2 for various reasons, it's vitally important to kick start new projects in Python 3.


1 Answers

Thanks for your feedback. First of all, if you try to run yum install python27-devel, then you should get the message like this:

No package python27-devel available 

Then I followed this link,

yum search python | grep -i devel 

This will show you that you have python-devel.x86_64 package available if your OS is a 64 bit OS. If I am correct, then the following command should work fine as shown in the accepted answer:

yum  install python-devel.x86_64 
like image 119
Sharif Mamun Avatar answered Oct 16 '22 15:10

Sharif Mamun