pyconfig.h missing during “pip install cryptography”

后端 未结 5 1863
臣服心动
臣服心动 2020-12-17 09:48

I wanna set up scrapy cluster follow this link scrapy-cluster,Everything is ok before I run this command:

pip install -r requirements.txt

T

相关标签:
5条回答
  • 2020-12-17 09:58

    For Python 3.7 on Debian, the following works for me.

    apt-get install python3.7-dev
    

    and

    apt-get install libssl-dev
    

    You may also need:

    apt-get install libffi-dev
    
    0 讨论(0)
  • 2020-12-17 10:04

    For Ubuntu, python2

    apt-get install python-dev 
    

    For Ubuntu, python3

    apt-get install python3-dev
    
    0 讨论(0)
  • 2020-12-17 10:08

    i use python 2 on ubuntu and got the same problem when installing cryptography. after i run this command

    apt-get install python-dev libssl-dev libffi-dev
    

    then it works.

    0 讨论(0)
  • 2020-12-17 10:16

    for python3.6,

    apt-get install python3.6-dev

    and

    apt-get install libssl-dev libffi-dev

    0 讨论(0)
  • 2020-12-17 10:20

    I have solved it by myself. for the default python of centos, there is only a file named pyconfg-64.h in usr/include/python2.7/,So run the command

    yum install python-devel
    

    Then it works.

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