我正在尝试将此切片用于我的 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 导入模块我打开终端并输入
>>> import M2Crypto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\M2Crypto\__init__.py", line 23, in <module
>
import m2
File "C:\Python27\lib\site-packages\M2Crypto\m2.py", line 28, in <module>
from __m2crypto import *
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
>>>
无论如何要解决这个问题??