错误代码:

    build/temp.linux-x86_64-2.7/_openssl.c:429:30: fatal error: openssl/opensslv.h: 没有那个文件或目录
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-AQ8e0t/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-2cxmRo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-AQ8e0t/cryptography/

这个原因是库文件不全,安装

sudo apt-get install libssl-dev

即可

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-12-29
  • 2021-04-21
  • 2021-12-10
  • 2021-10-20
  • 2022-01-20
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-06-19
  • 2021-04-29
相关资源
相似解决方案