sudo apt-get install python3-dev
export C_INCLUDE_PATH=/usr/include/python3.10/
fatal error: Python.h: No such file or directory
最新推荐文章于 2024-07-25 22:16:41 发布
该文指示如何使用Linux命令`sudoapt-getinstallpython3-dev`来安装Python3的开发头文件,同时设置了`C_INCLUDE_PATH`环境变量指向Python3.10的头文件目录,以便于C/C++程序编译时链接Python库。
摘要由CSDN通过智能技术生成