Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出現這個錯誤 error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 #12

Closed
tianrking opened this issue Dec 22, 2023 · 1 comment

Comments

@tianrking
Copy link

=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.10 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.10/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
       15 | #include <ffi.h>
          |          ^~~~~~~
    compilation terminated.
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l0sebslv/cffi_60c4ece9675c4ab2a237bb3b33dc14a5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l0sebslv/cffi_60c4ece9675c4ab2a237bb3b33dc14a5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3fnu84cm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/cffi Check the logs for full command output.
@tianrking
Copy link
Author

使用 可以解決

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant