项目部署到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 Kits\10\bin\x64下找到mt.exe。执行命令mt.exe -inputresource:"C:\Python26\python.exe";#1 -out:"C:
\Python26\extracted.python.exe.manifest" 。删除七尺trustInfo,重命名为httpd.exe.manifest。
3.复制到apache的http.exe相同目录下,执行mt.exe -manifest "C:\Program Files\Apache Software Foundation \Apache2.2\bin\httpd.exe.manifest" -outputresource:"C:\Program Files \Apache Software Foundation\Apache2.2\bin\httpd.exe";1
问题解决。
注意:1.执行命令的目录
2.在我自己的机器上输入命令时-manifest后面不需要加冒号(:),加了会报错,而链接中的作者加了冒号。可能是版本问题语法不同。