gpt4 book ai didi

python - 链接 : fatal error LNK1104: cannot open file 'python37_d.lib'

转载 作者:行者123 更新时间:2023-12-03 07:01:01 26 4
gpt4 key购买 nike

我试图在 Visual Studio 2013 的 C++ 应用程序中集成 Python 解释器,尽管添加了 INCLUDES 和 ENV 变量(例如 LIB 和 LIBPATH),但编译仍会抛出错误

链接: fatal error LNK1104:无法打开文件“python37_d.lib”。

我尝试了所有可能的谷歌建议,但我仍然无法摆脱这个错误。对此的任何帮助将不胜感激。

最佳答案

该库用于调试,如果 Python 是使用默认选项安装的,您根本就没有它。要获得它,您需要在安装程序中启用“下载调试二进制文件”选项的情况下(重新)安装 Python。然后 python37_d.lib 将与 python3_d.lib 一起位于 %PythonPath%\Libs 中。

关于python - 链接 : fatal error LNK1104: cannot open file 'python37_d.lib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61995649/

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