我有一个Django应用程序,它使用Paramiko与其他远程服务器通信。Paramiko依赖于模块winrandom,但是如果没有gcc,它不会安装在windows上,所以我改用winrandom-ctypes。
这一切在开发中都运行得很好,但是当我部署到Apache (也是在Windows上)时,它在import winrandom上失败了,错误如下:
DLL load failed: The specified module could not be found.
So...how我能让它在Apache下工作吗?
在windows机器python2.7上运行,每当我尝试使用命令行运行我的脚本时,我都会收到以下错误。
import winrandom
ImportError: DLL load failed: The specified module could not be found.
但是,当我通过python IDE运行脚本时,不会发生此错误
我正在尝试在一台Win10机器上安装Ansible。
我已经按照指导安装了cygwin和所需的包:
当我运行pip install ansible时,我收到以下错误:
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-too
我正在尝试在我的计算机上安装库。但我一直收到以下错误
D:\Software\Python\package\pycrypto-2.6>python setup.py build
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to f
我已经为我的Windows 10 PC安装了Python 3.6 64bit版本。我还有Visual Studio 2015,它有以下文件夹:
有些python,比如pycrypto,需要C++编译才能安装。
现在,当我试图安装pycrypto时,它会抛出这样的错误:
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visua
我一直在尝试用pyinstaller将python脚本编译成exe文件,但在运行exe文件后一直收到错误:
Traceback (most recent call last):
File "<string>", line 43, in <module>
File "c:\users\martin~1\appdata\local\temp\pip-build-arzhlv\pyinstaller\PyInst
aller\loader\pyimod03_importers.py", line 546, in load_module