How to install python developer package?

后端 未结 3 960
再見小時候
再見小時候 2020-12-07 20:29

I am trying to get mod_wsgi 3.3 to work. When I run make it is telling me that I am missing the Python developer package. How do I get and install

相关标签:
3条回答
  • 2020-12-07 21:06

    yum install python-devel will work.

    If yum doesn't work then use

    apt-get install python-dev

    0 讨论(0)
  • 2020-12-07 21:10

    For me none of the packages mentioned above did help.

    I finally managed to install lxml after running:

    sudo apt-get install python3.5-dev
    
    0 讨论(0)
  • 2020-12-07 21:18

    If you use yum search you can find the python dev package for your version of python.

    For me I was using python 3.5. I ran the following

    yum search python | grep devel
    

    Which returned the following

    I was then able to install the correct package for my version of python with the following cmd.

    sudo yum install python35u-devel.x86_64
    

    This works on centos for ubuntu or debian you would need to use apt-get

    0 讨论(0)
提交回复
热议问题