Traceback (most recent call last):
File "cost_centor_ok.py", line 6, in <module>
from Crypto.Cipher import AES
File "c:\users\wbac49~1\appdata\local\temp\easy_install-jra4cx\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Cipher\AES.py", line 50, in <module>
File "c:\users\wbac49~1\appdata\local\temp\easy_install-jra4cx\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Cipher\_AES.py", line 7, in <module>
File "c:\users\wbac49~1\appdata\local\temp\easy_install-jra4cx\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Cipher\_AES.py", line 6, in __bootstrap__
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。
https://stackoverflow.com/questions/21502835/pycrypto-import-aes-issue
下载对应版本的pycroto http://www.voidspace.org.uk/python/modules.shtml#pycrypto
安装, 注意安装路径
将安装路径中的lib与cryto相关的文件复制到虚拟环境