【发布时间】:2014-05-21 22:26:50
【问题描述】:
我下载了 tar.gz 文件并解压了文件夹,导航到存储它的目录,然后在命令提示符下输入
python setup.py install
显然应该安装它。但是,当我这样做时,我回来了
running install
running build
running build_py
running build_ext
warning: GMP or MPIR library not fou
building 'Crypto.Random.OSRNG.winran
error: Unable to find vcvarsall.bat
如果可能,我该如何解决这个问题。我正在运行 Windows 8(64 位),我有 Python 3.3,我下载了 PyCrypto 2.6。
另外,有人说要下载预打包的二进制文件。我应该提到我已经尝试过了。当我导入它时,shell 给了我另一个错误。
ImportError: DLL load failed: %1 is not a valid Win32 application.
是的,所以我找到了由 Python 创建者创建的密码学模块,所以我决定改用它。
【问题讨论】:
-
有什么原因不能使用
pip安装吗? -
@shuttle87 你能告诉我该怎么做吗?
标签: python encryption cryptography pycrypto failed-installation