解决Python.h没有那个文件或目录遇到的问题

460 阅读1分钟

Cython 错误提示:

Python.h:没有那个文件或目录

按百度 yum install python-devel 安装找不到,需要先查询:

yum search python | grep devel yum search python3 | grep devel


上次元数据过期检查:0:05:27 前,执行于 2020年04月04日 星期六 21时20分32秒。

nemo-python-devel.x86_64 : Python bindings for Nemo

nautilus-python-devel.x86_64 : Python bindings for Nautilus

platform-python-devel.i686 : Libraries and header files needed for Python

platform-python-devel.x86_64 : Libraries and header files needed for Python

qscintilla-python-devel.noarch : Development files for QScintilla PyQt4 bindings


yum search python3 | grep devel:

python3-devel.x86_64 : Libraries and header files needed for Python development


然后执行命令: yum install platform-python-devel.x86_64 或:yum install yum python3-devel.x86_64 解决!