其他分享
首页 > 其他分享> > 安装jupyter时报错Failed building wheel for argon2-cffi

安装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

标签:building,wheel,jupyter,argon2,pyconfig,cffi,Failed,build,linux
来源: https://blog.csdn.net/swq404/article/details/120970758