1、先导入所需要的包,当运行程序时可能报错没有被运行的模块Crypto,需要把python3安装目录Lib和Lib/site-packges下的crypto改成Crypto

pip3 install crypto

2、再安装pycrypto

pip3 install pycrypto

 

 另附exe安装包地址:http://www.voidspace.org.uk/python/modules.shtml#pycrypto