I get the following error during installation:
Collecting cffi==1.14.6
Using cached cffi-1.14.6.tar.gz (475 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘done’
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status ‘error’
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/cffi
copying cffi/commontypes.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/backend_ctypes.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/api.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/cparser.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/lock.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/recompiler.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/setuptools_ext.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/verifier.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/pkgconfig.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/vengine_gen.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/ffiplatform.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/cffi_opcode.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/vengine_cpy.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/error.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/init.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/model.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/_cffi_include.h → build/lib.linux-x86_64-3.10/cffi
copying cffi/parse_c_type.h → build/lib.linux-x86_64-3.10/cffi
copying cffi/_embedding.h → build/lib.linux-x86_64-3.10/cffi
copying cffi/_cffi_errors.h → build/lib.linux-x86_64-3.10/cffi
running build_ext
building ‘_cffi_backend’ extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/c
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=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
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: pycparser, cffi
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status ‘error’
error: subprocess-exited-with-error
× Running setup.py install for cffi did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/cffi
copying cffi/commontypes.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/backend_ctypes.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/api.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/cparser.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/lock.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/recompiler.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/setuptools_ext.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/verifier.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/pkgconfig.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/vengine_gen.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/ffiplatform.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/cffi_opcode.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/vengine_cpy.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/error.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/init.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/model.py → build/lib.linux-x86_64-3.10/cffi
copying cffi/_cffi_include.h → build/lib.linux-x86_64-3.10/cffi
copying cffi/parse_c_type.h → build/lib.linux-x86_64-3.10/cffi
copying cffi/_embedding.h → build/lib.linux-x86_64-3.10/cffi
copying cffi/_cffi_errors.h → build/lib.linux-x86_64-3.10/cffi
running build_ext
building ‘_cffi_backend’ extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/c
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=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
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cffi
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
And Seahub URL shows internal server error 
Any idea how to fix this?
Thanks a lot for helping me!