django部署到apache出现DLL load failed

项目部署到apache后访问页面跳出DLL load failed,后面是问号乱码,异常由from Crypto.Cipher import AES抛出,在https://groups.google.com/forum/#!msg/modwsgi/-nLeLe7ydtk/UXCclNwlsK8J找到解决方法,主要步骤为三步。

1.下载Microsoft Windows SDK并安装

2.在C:Program Files (x86)Windows Kits10inx64下找到mt.exe。执行命令mt.exe -inputresource:"C:Python26python.exe";#1 -out:"C: 
Python26extracted.python.exe.manifest" 。删除七尺trustInfo,重命名为httpd.exe.manifest。

3.复制到apache的http.exe相同目录下,执行mt.exe -manifest "C:Program FilesApache Software Foundation Apache2.2inhttpd.exe.manifest" -outputresource:"C:Program Files Apache Software FoundationApache2.2inhttpd.exe";1 

问题解决。

注意:1.执行命令的目录

   2.在我自己的机器上输入命令时-manifest后面不需要加冒号(:),加了会报错,而链接中的作者加了冒号。可能是版本问题语法不同。

原文地址:https://www.cnblogs.com/songbird/p/5707238.html