Apache 中的 Paramiko:DLL 加载失败
我有一个 Django 应用程序,它使用 Paramiko 与其他远程服务器进行通信。 Paramiko 依赖于模块 winrandom
,但如果没有 gcc
,该模块将无法安装在 Windows 上,因此我使用 winrandom-ctypes
。
这一切在开发中都工作得很好,但是当我部署到 Apache(也在 Windows 上)时,它在 import winrandom
上失败,并出现以下错误:
DLL load failed: The specified module could not be found.
那么...我怎样才能在 Apache 下完成这项工作?
I have a Django app that uses Paramiko to communicate with other remote servers.
Paramiko relies on module winrandom
, but that won't install on windows without gcc
, so instead I use winrandom-ctypes
.
This all works fine from development, but when I deploy to Apache (also on Windows), it fails on import winrandom
, with this error:
DLL load failed: The specified module could not be found.
So...how can I make this work under Apache?
我对 pyCrypton 2.3 也有同样的问题。切换回 2.1 似乎可以解决这个问题。
I've got the same problem with pyCrypton 2.3. Switching back to 2.1 seems to fix it.