Python 官方文档:入门教程 => 点击学习
在把python库添加进VS2008里面去时,遇到一个问题如下: 1>------ Build started: Project: Python, Configuration: Debug Win32 ------ 1>Comp
在把python库添加进VS2008里面去时,遇到一个问题如下:
1>------ Build started: Project: Python, Configuration: Debug Win32 ------ 1>Compiling... 1>python.cpp 1>Linking... 1>LINK : fatal error LNK1104: cannot open file 'python27_d.lib' 1>Build log was saved at "file://d:\用户目录\Documents\Visual Studio 2008\Projects\python\python\Debug\BuildLog.htm" 1>python - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
出现上述问题时,将下面任意一句
#define MS_NO_COREDLL
或 #define Py_NO_ENABLE_SHARED
添加进python.h文件。
打开python.h文件,在如下位置添加该语句:
也就解决问题了。
--结束END--
本文标题: Python编程->cannot ope
本文链接: https://www.lsjlt.com/news/182939.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0