Python M2Crypto DLL加载失败,找不到指定的模块

2024-10-01 15:30:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将此切片用于我的web2py应用程序 http://www.web2pyslices.com/slices/take_slice/106

我安装了模块M2Crypto并跟随切片,当加载页面时我收到了这个错误

Traceback (most recent call last):
  File "F:\Projects\Web2py\w1992\gluon\restricted.py", line 194, in restricted
    exec ccode in environment
  File "F:\Projects\Web2py\w1992\applications\internet2letter\views\account/order.html", line 102, in <module>
  File "F:\Projects\Web2py\w1992\gluon\custom_import.py", line 294, in __call__
    fromlist, level)
  File "F:\Projects\Web2py\w1992\gluon\custom_import.py", line 78, in __call__
    level)
  File "applications\internet2letter\modules\crypt.py", line 2, in <module>
    from M2Crypto import BIO, SMIME, X509, EVP
  File "F:\Projects\Web2py\w1992\gluon\custom_import.py", line 294, in __call__
    fromlist, level)
  File "F:\Projects\Web2py\w1992\gluon\custom_import.py", line 78, in __call__
    level)
  File "C:\Python27\lib\site-packages\M2Crypto\__init__.py", line 22, in <module>
    import __m2crypto
  File "F:\Projects\Web2py\w1992\gluon\custom_import.py", line 294, in __call__
    fromlist, level)
  File "F:\Projects\Web2py\w1992\gluon\custom_import.py", line 78, in __call__
    level)
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

所以我尝试从Python direcktly导入模块 我打开终端

^{pr2}$

不管怎样解决这个问题??在


Tags: inpyimportcustomlinecalllevelfile
1条回答
网友
1楼 · 发布于 2024-10-01 15:30:22

有相同的问题,通过从这里安装OpenSSL for Windows来修复它:http://slproweb.com/products/Win32OpenSSL.html

我使用opensslv1.0.1b(dll安装到system dir)和M2Crypto 0.21.1和python2.7.3(所有32个版本)没有问题。在

相关问题 更多 >

    热门问题