How to install gevent?

How to install gevent? I should sudo install but cant work it
What should i do? im not expert
could help me?

Collecting gevent
Downloading gevent-20.6.2.tar.gz (5.8 MB)
|████████████████████████████████| 5.8 MB 248 kB/s
Installing build dependencies … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-uqfpwg_b/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – ‘setuptools >= 40.8.0’ wheel ‘Cython >= 3.0a5’ ‘cffi >= 1.12.3 ; platform_python_implementation == ‘"’"‘CPython’"’"’’ ‘greenlet >= 0.4.16 ; platform_python_implementation == ‘"’"‘CPython’"’"’’
cwd: None
Complete output (151 lines):
WARNING: The directory ‘/home/bb110/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting setuptools>=40.8.0
Downloading setuptools-49.2.0-py3-none-any.whl (789 kB)
Collecting wheel
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting Cython>=3.0a5
Downloading Cython-3.0a5-py2.py3-none-any.whl (1.0 MB)
Collecting cffi>=1.12.3
Downloading cffi-1.14.1.tar.gz (468 kB)
Collecting greenlet>=0.4.16
Downloading greenlet-0.4.16.tar.gz (60 kB)
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: cffi, greenlet
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status ‘error’
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-raj_nobe/cffi/setup.py’"’"’; file=’"’"’/tmp/pip-install-raj_nobe/cffi/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-ax8ejrqn
cwd: /tmp/pip-install-raj_nobe/cffi/
Complete output (56 lines):
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-3.6 creating build/lib.linux-aarch64-3.6/cffi copying cffi/error.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/model.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/recompiler.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/lock.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/api.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/commontypes.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/__init__.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/verifier.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/cparser.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.6/cffi copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.6/cffi copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.6/cffi copying cffi/_embedding.h -> build/lib.linux-aarch64-3.6/cffi copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.6/cffi running build_ext building '_cffi_backend' extension creating build/temp.linux-aarch64-3.6 creating build/temp.linux-aarch64-3.6/c aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -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.6m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.6/c/_cffi_backend.o c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory #include <ffi.h> ^~~~~~~ compilation terminated. error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for cffi Running setup.py clean for cffi Building wheel for greenlet (setup.py): started Building wheel for greenlet (setup.py): finished with status 'done' Created wheel for greenlet: filename=greenlet-0.4.16-cp36-cp36m-linux_aarch64.whl size=42440 sha256=d54c6c167d12d23de039a90834659ed565414a2afee00336ca2e78748b53cfda Stored in directory: /tmp/pip-ephem-wheel-cache-fll9dmmu/wheels/7f/3a/c8/c1972109e5f45e7c151afa67d3c5a07e0a0dd592345ac12c73 Successfully built greenlet Failed to build cffi DEPRECATION: Could not build wheels for cffi which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Installing collected packages: setuptools, wheel, Cython, pycparser, cffi, greenlet Running setup.py install for cffi: started Running setup.py install for cffi: finished with status 'error' ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-raj_nobe/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-raj_nobe/cffi/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-ndlezubs/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-uqfpwg_b/overlay --compile --install-headers /tmp/pip-build-env-uqfpwg_b/overlay/include/python3.6m/cffi cwd: /tmp/pip-install-raj_nobe/cffi/ Complete output (56 lines): Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/cffi
copying cffi/error.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/model.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/api.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/init.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.6/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.6/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-3.6/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.6/cffi
running build_ext
building ‘_cffi_backend’ extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/c
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -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.6m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.6/c/_cffi_backend.o
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^~~~~~~
compilation terminated.
error: command ‘aarch64-linux-gnu-gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-raj_nobe/cffi/setup.py’"’"’; file=’"’"’/tmp/pip-install-raj_nobe/cffi/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-ndlezubs/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-uqfpwg_b/overlay --compile --install-headers /tmp/pip-build-env-uqfpwg_b/overlay/include/python3.6m/cffi Check the logs for full command output.

ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-uqfpwg_b/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – ‘setuptools >= 40.8.0’ wheel ‘Cython >= 3.0a5’ ‘cffi >= 1.12.3 ; platform_python_implementation == ‘"’"‘CPython’"’"’’ ‘greenlet >= 0.4.16 ; platform_python_implementation == ‘"’"‘CPython’"’"’’ Check the logs for full command output.

Have a try this link

thank you! very kind!