github上已经有人帮我们编译好了,只需要安装即可
pip install --use-wheel --no-index --find-links=https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl pycrypto
- 不要使用命令pip install crypto安装,这个命令安装的是crypto包,并不能用
- 在导入crypto时需要注意:from Crypto.Cipher import AES 两个C都要大写