版本:python3.7
安装pycrypto
1.下载源码
win+R打开cmd,
输入: start powershell
$downloadfile='https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz' $savelocation='./pycrypto-2.6.1.tar.gz' $client = new-object System.Net.WebClient $client.DownloadFile($downloadfile, $savelocation)
2.解压并安装
解压pycrypto-2.6.1.tar.gz并进入解压后的目录中,cmd执行:
python setup.py install
报错:error: Unable to find vcvarsall.bat