安装jupyter时报错Failed building wheel for argon2-cffi

问题

首先部分报错信息如下:

build/temp.linux-aarch64-3.8/_ffi.c:50:14: fatal error: pyconfig.h: No such file or directory
     50 | #    include <pyconfig.h>
        |              ^~~~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for argon2-cffi
Failed to build argon2-cffi
ERROR: Could not build wheels for argon2-cffi which use PEP 517 and cannot be installed directly

解决

根据错误信息可知缺少pyconfig.h文件,查阅百度发现缺少 python3-dev 包,安装即可

apt install python-dev
上一篇:【Bug - lombok】java: You aren‘t using a compiler supported by lombok, so lombok will not work and ...


下一篇:计算机网络汇总