gpt4 book ai didi

python - 与python26链接的visual studio中的编译错误

转载 作者:太空狗 更新时间:2023-10-29 21:53:31 24 4
gpt4 key购买 nike

我在运行时遇到错误:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPYTHON -DJCC_VER="2.13" -D_java_generics -IX:\Java16/include -IX:\Java16/include/win32 -Ibuild\_CMMCore -IC:\Python26\lib\site-packages\jcc\sources -IC:\Python26\include -IC:\Python26\PC /Tpbuild\_CMMCore\CMMCore.cpp /Fobuild\temp.win32-2.6\Release\build\_CMMCore\CMMCore.obj /EHsc /D_CRT_SECURE_NO_WARNINGS

以下内容:

c:\python26\include\pyconfig.h(233) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2

我将 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include 放入 PATH 中,因为它包含 BaseTsd.h,但这并没有解决问题。我认为这与案件无关?

非常感谢任何帮助!

最佳答案

它不是 PATH,它是 INCLUDE 环境变量。

http://msdn.microsoft.com/en-us/library/f2ccy3wt(v=vs.80).aspx

关于python - 与python26链接的visual studio中的编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10773732/

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