ImportError:DLL加载失败:%1不是有效的Win32应用程序[pycrypto]

时间:2016-02-28 22:43:15

标签: python cryptography rsa pycrypto

我在Windows 10 64位版本的python 64位版本上安装了PyCrypto 当我输入: from Crypto.Hash import SHA512 一切正常,我可以计算哈希

但是当我输入:from Crypto.PublicKey import RSA或任何Crypto.PublicKey库时,我收到错误:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\PublicKey\RSA.py", line 78, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\__init__.py", line 28, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\__init__.py", line 34, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\nt.py", line 28, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\winrandom.py", line 7, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\winrandom.py", line 6, in __bootstrap__

ImportError: DLL load failed: %1 is not a valid Win32 application.

我是安装和使用python包和库的新手。 here you can see that the library is included correctly

有人可以帮我解决这个错误吗?

0 个答案:

没有答案