在新安装的机器上(win10 64位),我安装了python 2.7.11(64位),现在使用>>> import M2Crypto
# C:\Python27\lib\encodings\cp850.pyc matches C:\Python27\lib\encodings\cp850.py
import encodings.cp850 # precompiled from C:\Python27\lib\encodings\cp850.pyc
import M2Crypto # directory C:\Python27\lib\site-packages\M2Crypto
# C:\Python27\lib\site-packages\M2Crypto\__init__.pyc matches C:\Python27\lib\site-packages\M2Crypto\__init__.py
import M2Crypto # precompiled from C:\Python27\lib\site-packages\M2Crypto\__init__.pyc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\M2Crypto\__init__.py", line 22, in <module>
import __m2crypto
ImportError: DLL load failed: The specified module could not be found.
安装了M2Crypto但是,尝试导入它会出现以下错误(详细跟踪):< / p>
//parent class
@OneToMany(mappedBy="parentClass",cascade=CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REMOV CascadeType.REFRESH}, orphanRemoval =false, fetch = FetchType.EAGE
@CascadeOnDelete
private List<ChildClass> childClass;
//child class
@ManyToOne(cascade={CascadeType.PERSIST,CascadeType.REMOVE,CascadeType.REFRESH})
private ParentClass parentClass;
我的网站包中有一个M2Crypto文件夹,所以这里可能有什么问题?
答案 0 :(得分:0)
使用依赖性walker我发现计算机上缺少MSVCR100.DLL
,显然需要它。这是Microsoft Visual C ++ 2010 SP1可再发行组件包(x64)的一部分,可以在此处下载和安装:https://www.microsoft.com/en-us/download/details.aspx?id=13523
重新启动命令行后,它现在成功导入。