gpt4 book ai didi

Windows 上的 Python.h 和 MinGW

转载 作者:行者123 更新时间:2023-11-30 17:56:50 25 4
gpt4 key购买 nike

我在 C 代码中导入 Python.h 时遇到问题

No such file or directory

我使用的是 Windows 7 64 位,带有代码块 IDE MinGW 编译器

请有人帮我安装 python c 库吗?

最佳答案

使用 WinPython 和 gcc:添加 -I"[WinPythonFolder]\[python-ver.amd64]\include

例如:

 gcc read_wfm_wrap.c -I"C:\Python\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\include"

关于Windows 上的 Python.h 和 MinGW,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13218627/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com