Python导入错误“ DLL加载失败”; |蟒蛇 [英] Python import error "DLL load failed" | Python

查看:212
本文介绍了Python导入错误“ DLL加载失败”; |蟒蛇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在IIS6 Web服务器后提供Django应用。

测试服务器运行良好,但是在Web服务器后运行一个模块无法导入,我收到此错误:

The test server runs perfectly, but when running behind the web server a module failes to import I get this error:


加载pyodbc模块时出错: DLL加载失败:指定的模块无法找到






仅记录该模块为 pyodbc

使用isaapi通过 isapi-wsgi

The site is served though isapi by using isapi-wsgi

有什么想法吗?真的会让我开心! :)

推荐答案

此错误是PITA:它通常是由于dll中缺少符号引起的(因为找不到dll等)。您应该检查带有依赖项walker的.pyd,或者查看Windows日志,该日志可能会记录此类错误,具体取决于您的配置。

This error is a PITA: it is often caused by missing symbols in dll (because a dependent dll was not found, etc...). You should check the .pyd with dependency walker, or look into the windows log which may log such errors depending on your configuration.

这篇关于Python导入错误“ DLL加载失败”; |蟒蛇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆