Install the Python-dev__python on the CENTOS7

Source: Internet
Author: User
Tags switches

Problems Install the installation Audiotoolsmake

Running Build_ext
building ' audiotools.pcm ' extension creating, build/temp.linux-x86_64-2.7 creating
BUILD/TEMP.LINUX-X86_64-2.7/SRC
gcc-pthread-fno-strict-aliasing-o2-g-pipe-wall-wp,-d_fortify_source=2- Fexceptions-fstack-protector-strong--param=ssp-buffer-size=4-grecord-gcc-switches-m64-mtune=generic-d_gnu_ Source-fpic-fwrapv-dndebug-o2-g-pipe-wall-wp,-d_fortify_source=2-fexceptions-fstack-protector-strong--param=ss P-buffer-size=4-grecord-gcc-switches-m64-mtune=generic-d_gnu_source-fpic-fwrapv-fpic-i/usr/include/python2.7-c Src/pcm.c-o build/temp.linux-x86_64-2.7/src/pcm.o
src/pcm.c:2:20: Fatal error: Python.h: No file or directory
 #include < Python.h>
                    ^
compilation interrupted.
error:command ' gcc ' failed with exit status 1 make
: * * * * [Install] Error 1

Because of the lack of Python.h solution

Install Python-dev, but no centos on top of the package

[Root@master audiotools-3.0]# yum install Python-dev
loaded plugins: fastestmirror Loading mirror speeds from
cached Hostfile
 * base:mirrors.163.com *
 extras:centos.ustc.edu.cn *
 updates:mirrors.163.com
No packages available Python-dev.

Because the CentOS above Python-dev for Python-devel

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.