py2exe 创建的 exe 给出错误
我从 py2exe 创建了一个 exe。成功创建exe后,当我运行main.exe时出现以下错误。
File "_mssql.pyc", line 12, in <module>
File "_mssql.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.
我正在为 sql server 使用 pymssql 模块。
i have created an exe from py2exe. After successfully creating the exe, i got the following error when i run main.exe.
File "_mssql.pyc", line 12, in <module>
File "_mssql.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.
I am using pymssql module for sql server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保将该模块包含在 options 字典下。我认为它还需要一个名为
ntwdblib.dll
的 dll 文件。您可以找到该文件并将其包含到您的setup.py
中。make sure you include the module under the options dictionary. I think it also needs a dll file called
ntwdblib.dll
. you can find that file and include it into yoursetup.py
.