How to install python27-devel on Centos 6.5
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
How to install python developer package?
yum install python-devel
will work.
If yum
doesn't work then use
apt-get install python-dev
How to install python3-devel on red hat 7
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
How to install python2.6-devel package under CentOs 5
I have the same issue and this wonderful link solved it for me...
http://blog.milford.io/2010/08/new-method-for-installing-python-2-6-4-with-mysql-python-on-centos-5-5/
I followed some of the steps out of order because I was a little antsy and got some interesting error messages. I couldn't get mysqldb to build, but then I ran yum to install the packages i was supposed to be building and voila, mysqldb now builds and installs.
Let me know if it still doesn't work afterwards.
python-dev installation error: ImportError: No module named apt_pkg
Make sure you have a working python-apt package. You could try and remove and install that package again to fix the problem with apt_pkg.so not being located.
apt-get install python-apt
Related Topics
Lsb_Release: Command Not Found in Latest Ubuntu Docker Container
Creating an Installer for Linux Application
How to Post Url in Data of a Curl Request
How to Prevent Grep from Printing a Trailing Newline
Why Do I Get Permission Denied When I Try Use "Make" to Install Something
Copying Files Based on Modification Date in Linux
Search and Replace Text in All Files of a Linux Directory
Listing All User-Installed Packages in Debian
How to Develop Linux Screen Saver
What Is the Best Emacs Workspaces Plugin
Find and Replace in Shell Scripting
Convert a Fixed Width File from Text to CSV
Best File System for Serving 1Gb Files Using Nginx, Under Moderate Write, Read Performance-Wise