pip 安装python模块常见错误

发布时间:2019-09-01 09:50:19编辑:auto阅读(1863)


    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


关键字