安装python包的时候或许会出现一下错误:
In file included from native/common/include/jpype.h:194,
from native/common/jp_array.cpp:16:
native/python/include/jp_pythontypes.h:18:10: 致命错误:Python.h:没有那个文件或目录
18 | #include <Python.h>
| ^~~~~~~~~~
编译中断。
error: command '/usr/bin/gcc' failed with exit code 1
解决方案:
安装python开发包
[root@fedora ~]# yum install python3-devel
上次元数据过期检查:0:20:19 前,执行于 2022年02月27日 星期日 16时40分55秒。
依赖关系解决。
=======================================================================================================================================================================================
软件包 架构 版本 仓库 大小
=======================================================================================================================================================================================
安装:
python3-devel x86_64 3.10.2-1.fc35 updates 207 k
事务概要
=======================================================================================================================================================================================
安装 1 软件包
总下载:207 k
安装大小:779 k
确定吗?[y/N]: y
下载软件包:
python3-devel-3.10.2-1.fc35.x86_64.rpm 156 kB/s | 207 kB 00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 100 kB/s | 207 kB 00:02
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : python3-devel-3.10.2-1.fc35.x86_64 1/1
运行脚本: python3-devel-3.10.2-1.fc35.x86_64 1/1
验证 : python3-devel-3.10.2-1.fc35.x86_64 1/1
已安装:
python3-devel-3.10.2-1.fc35.x86_64
完毕!