pip 安装python模块常见错误

2023-01-31 03:01:46 错误 模块 常见


1.报错:

c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory

     #include <ffi.h>

                     ^

    compilation terminated.

    error: command 'GCc' failed with exit status 1


yum install -y libffi-devel  python-devel

ubuntu

 

apt-get install -y libffi-dev Python-dev libevent-dev

 

 

2.报错:build/temp.linux-x86_64-3.4/_openssl.c:423:30: fatal error: openssl/opensslv.h: No such file or directory

 

   apt-get install libssl-dev


相关文章