pip3安装matplotlib时,出现 致命错误:Python.h:没有那个文件或目录 #include “Python.h

我不是女神ヾ 2023-09-30 19:09 35阅读 0赞

问题背景:

pip3 insatll matplotlib时,编译中断。

src/_imagingtk.c:15:20: 致命错误:Python.h:没有那个文件或目录

#include “Python.h”

问题原因:

python3没有安装python3-devel开发工具包导致的。

问题解决:

  1. yum install -y python3-devel

发表评论

表情:
评论列表 (有 0 条评论,35人围观)

还没有评论,来说两句吧...

相关阅读