安装pycrypto各种踩坑

本意要安装paramiko,前提要先安装pycrypto

先按照网上步骤:

1.下载pycrypto源码

官网:https://www.dlitz.net/software/pycrypto/
github:https://github.com/dlitz/pycrypto
下载源码解压,win+R运行cmd,进入解压文件夹

python setup.py install

2.安装过程中显示unable to find vcvarsall.bat

根据网上说的查看Python36\Lib\distutils_msvccompiler.py

然后根据vs的版本号对应关系如下:

msvs2005版本号为8.0,对应环境变量VS80COMNTOOLS
msvs2008版本号为9.0,对应环境变量VS90COMNTOOLS
msvs2010版本号为10.0,对应环境变量VS100COMNTOOLS
msvs2012版本号为11.0,对应环境变量VS110COMNTOOLS
msvs2013版本号为12.0,对应环境变量VS120COMNTOOLS
msvs2015版本号为14.0,对应环境变量VS140COMNTOOLS

找到合适的版本为:msvs2015

3.找到相应的版本后,下面是安装对应版本的msvs(Microsoft Visual Studio)

如果是Visual Studio 2015,提供个百度经验上百度网盘给大家

https://pan.baidu.com/s/1HgMoIRvD4My6duqYFnShqQ

 安装msvs2015时,参考网上图片选下面3个项

下班前安装,然后第二天来看,安装成功(没受着,据说安装挺久的)

根据网上的描述配置用户环境变量

(1)变量名:VCINSTALLDIR
变量值:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC 【msvs2015安装的路径】
(2) win+R运行cmd,执行命令set CL=/FI”%VCINSTALLDIR%\INCLUDE\stdint.h” %CL%
(3)再次进入pycryto的解压文件夹python setup.py install ,看到

D:\tools\python\pycrypto-2.6.1>python setup.py install
running install
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

building 'Crypto.Random.OSRNG.winrandom' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /
nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/ -Isrc/inc-msvc/ "-IC:\Program Files\Pytho
n36\include" "-IC:\Program Files\Python36\include" "-IC:\Program Files (x86)\Mic
rosoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual
Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\includ
e\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\inclu
de\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program
Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kit
s\8.1\include\\winrt" /Tcsrc/winrand.c /Fobuild\temp.win-amd64-3.6\Release\src/w
inrand.obj
winrand.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(26):
error C2061: syntax error: identifier 'intmax_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(27):
error C2061: syntax error: identifier 'rem'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(27):
error C2059: syntax error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(28):
error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(30):
error C2061: syntax error: identifier 'imaxdiv_t'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(30):
error C2059: syntax error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(40):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(41):
error C2146: syntax error: missing ')' before identifier '_Number'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(41):
error C2061: syntax error: identifier '_Number'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(41):
error C2059: syntax error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(42):
error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(45):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):
error C2146: syntax error: missing ')' before identifier '_Numerator'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):
error C2061: syntax error: identifier '_Numerator'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):
error C2059: syntax error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):
error C2059: syntax error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(48):
error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(50):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(56):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(63):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(69):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(76):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(82):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(89):
error C2143: syntax error: missing '{' before '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(95):
error C2143: syntax error: missing '{' before '__cdecl'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\
x86_amd64\\cl.exe' failed with exit status 2

D:\tools\python\pycrypto-2.6.1>

跟网上说的不一样,没看到running install_egg_info

然后检查自己的操作步骤和网上的步骤,发现貌似安装完msvs2015没有重启,然后关了所有应用,重启系统。

重启后再次进入pycryto的解压文件夹python setup.py install ,看到和前面一样,然后再对比步骤,貌似没发现那里不对,然后感觉无奈,只能各种搜索各种看各种试【这里不再展示各种痛苦的尝试】。

最后,在一篇文章中看到要在命令行中执行:set CL=/FI"%VCINSTALLDIR%\\INCLUDE\\stdint.h,想想之前貌似也执行过,不过还是再试试【已经到了“死猪不怕开水烫”的节奏了】

上面的命令执行完后,再次进入pycryto的解压文件夹python setup.py install ,看到这次跑得比前面的时间要长了,仔细一看,哇,貌似有成功前的感觉(暗喜,焦急的等待着),终于不负我望成功了

copying build\lib.win-amd64-3.6\Crypto\SelfTest\Cipher\test_DES3.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Cipher
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> C:\Pr
ogram Files\Python36\Lib\site-packages\Crypto\SelfTest\Cipher
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> C:\
Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Cipher
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Cipher\test_XOR.py -> C:\Program
Files\Python36\Lib\site-packages\Crypto\SelfTest\Cipher
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\common.py -> C:\Program Fil
es\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_HMAC.py -> C:\Program
Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_MD2.py -> C:\Program F
iles\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_MD4.py -> C:\Program F
iles\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_MD5.py -> C:\Program F
iles\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_RIPEMD.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_SHA.py -> C:\Program F
iles\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_SHA224.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_SHA256.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_SHA384.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Hash\test_SHA512.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Protocol\test_AllOrNothing.py ->
C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Protocol
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Protocol\test_chaffing.py -> C:\
Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Protocol
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Protocol\test_KDF.py -> C:\Progr
am Files\Python36\Lib\site-packages\Crypto\SelfTest\Protocol
copying build\lib.win-amd64-3.6\Crypto\SelfTest\PublicKey\test_ElGamal.py -> C:\
Program Files\Python36\Lib\site-packages\Crypto\SelfTest\PublicKey
copying build\lib.win-amd64-3.6\Crypto\SelfTest\PublicKey\test_importKey.py -> C
:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\PublicKey
copying build\lib.win-amd64-3.6\Crypto\SelfTest\PublicKey\test_RSA.py -> C:\Prog
ram Files\Python36\Lib\site-packages\Crypto\SelfTest\PublicKey
creating C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\Fort
una
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\Fortuna\test_FortunaAccum
ulator.py -> C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\
Fortuna
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\Fortuna\test_FortunaGener
ator.py -> C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\Fo
rtuna
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -
> C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\Fortuna
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\Fortuna\__init__.py -> C:
\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\Fortuna
creating C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRN
G
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\OSRNG\test_fallback.py ->
C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRNG
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\OSRNG\test_generic.py ->
C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRNG
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\OSRNG\test_nt.py -> C:\Pr
ogram Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRNG
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\OSRNG\test_posix.py -> C:
\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRNG
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -
> C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRNG
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\OSRNG\__init__.py -> C:\P
rogram Files\Python36\Lib\site-packages\Crypto\SelfTest\Random\OSRNG
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\test_random.py -> C:\Prog
ram Files\Python36\Lib\site-packages\Crypto\SelfTest\Random
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\test_rpoolcompat.py -> C:
\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Random\test__UserFriendlyRNG.py
-> C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Random
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Signature\test_pkcs1_15.py -> C:
\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Signature
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> C
:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Signature
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Signature\__init__.py -> C:\Prog
ram Files\Python36\Lib\site-packages\Crypto\SelfTest\Signature
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Util\test_asn1.py -> C:\Program
Files\Python36\Lib\site-packages\Crypto\SelfTest\Util
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Util\test_Counter.py -> C:\Progr
am Files\Python36\Lib\site-packages\Crypto\SelfTest\Util
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Util\test_number.py -> C:\Progra
m Files\Python36\Lib\site-packages\Crypto\SelfTest\Util
copying build\lib.win-amd64-3.6\Crypto\SelfTest\Util\test_winrandom.py -> C:\Pro
gram Files\Python36\Lib\site-packages\Crypto\SelfTest\Util
copying build\lib.win-amd64-3.6\Crypto\SelfTest\__init__.py -> C:\Program Files\
Python36\Lib\site-packages\Crypto\SelfTest
copying build\lib.win-amd64-3.6\Crypto\Signature\PKCS1_PSS.py -> C:\Program File
s\Python36\Lib\site-packages\Crypto\Signature
copying build\lib.win-amd64-3.6\Crypto\Util\asn1.py -> C:\Program Files\Python36
\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\Counter.py -> C:\Program Files\Pytho
n36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\number.py -> C:\Program Files\Python
36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\py3compat.py -> C:\Program Files\Pyt
hon36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\randpool.py -> C:\Program Files\Pyth
on36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\RFC1751.py -> C:\Program Files\Pytho
n36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\strxor.cp36-win_amd64.pyd -> C:\Prog
ram Files\Python36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\winrandom.py -> C:\Program Files\Pyt
hon36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\_counter.cp36-win_amd64.pyd -> C:\Pr
ogram Files\Python36\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.6\Crypto\Util\_number_new.py -> C:\Program Files\P
ython36\Lib\site-packages\Crypto\Util
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\ARC2.py
to ARC2.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\ARC4.py
to ARC4.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\blockal
go.py to blockalgo.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\Blowfis
h.py to Blowfish.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\CAST.py
to CAST.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\PKCS1_O
AEP.py to PKCS1_OAEP.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\PKCS1_v
1_5.py to PKCS1_v1_5.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Cipher\XOR.py
to XOR.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Hash\hashalgo.
py to hashalgo.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Hash\HMAC.py t
o HMAC.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Hash\MD5.py to
MD5.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Hash\SHA.py to
SHA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\pct_warnings.p
y to pct_warnings.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Protocol\AllOr
Nothing.py to AllOrNothing.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Protocol\Chaff
ing.py to Chaffing.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Protocol\KDF.p
y to KDF.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\PublicKey\DSA.
py to DSA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\PublicKey\pubk
ey.py to pubkey.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\PublicKey\RSA.
py to RSA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\PublicKey\_DSA
.py to _DSA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\PublicKey\_RSA
.py to _RSA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\PublicKey\_slo
wmath.py to _slowmath.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\Fortuna
\FortunaAccumulator.py to FortunaAccumulator.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\Fortuna
\FortunaGenerator.py to FortunaGenerator.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\Fortuna
\SHAd256.py to SHAd256.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\Fortuna
\__init__.py to __init__.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\OSRNG\f
allback.py to fallback.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\OSRNG\n
t.py to nt.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\OSRNG\p
osix.py to posix.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\OSRNG\r
ng_base.py to rng_base.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\OSRNG\_
_init__.py to __init__.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\random.
py to random.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Random\_UserFr
iendlyRNG.py to _UserFriendlyRNG.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\common.py to common.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_AES.py to test_AES.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_ARC2.py to test_ARC2.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_ARC4.py to test_ARC4.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_Blowfish.py to test_Blowfish.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_CAST.py to test_CAST.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_DES.py to test_DES.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_DES3.py to test_DES3.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_pkcs1_15.py to test_pkcs1_15.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_pkcs1_oaep.py to test_pkcs1_oaep.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Ciphe
r\test_XOR.py to test_XOR.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
common.py to common.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_HMAC.py to test_HMAC.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_MD2.py to test_MD2.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_MD4.py to test_MD4.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_MD5.py to test_MD5.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_RIPEMD.py to test_RIPEMD.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_SHA.py to test_SHA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_SHA224.py to test_SHA224.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_SHA256.py to test_SHA256.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_SHA384.py to test_SHA384.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Hash\
test_SHA512.py to test_SHA512.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Proto
col\test_AllOrNothing.py to test_AllOrNothing.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Proto
col\test_chaffing.py to test_chaffing.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Proto
col\test_KDF.py to test_KDF.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Publi
cKey\test_ElGamal.py to test_ElGamal.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Publi
cKey\test_importKey.py to test_importKey.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Publi
cKey\test_RSA.py to test_RSA.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\Fortuna\test_FortunaAccumulator.py to test_FortunaAccumulator.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\Fortuna\test_FortunaGenerator.py to test_FortunaGenerator.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\Fortuna\test_SHAd256.py to test_SHAd256.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\Fortuna\__init__.py to __init__.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\OSRNG\test_fallback.py to test_fallback.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\OSRNG\test_generic.py to test_generic.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\OSRNG\test_nt.py to test_nt.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\OSRNG\test_posix.py to test_posix.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\OSRNG\test_winrandom.py to test_winrandom.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\OSRNG\__init__.py to __init__.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\test_random.py to test_random.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\test_rpoolcompat.py to test_rpoolcompat.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Rando
m\test__UserFriendlyRNG.py to test__UserFriendlyRNG.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Signa
ture\test_pkcs1_15.py to test_pkcs1_15.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Signa
ture\test_pkcs1_pss.py to test_pkcs1_pss.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Signa
ture\__init__.py to __init__.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Util\
test_asn1.py to test_asn1.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Util\
test_Counter.py to test_Counter.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Util\
test_number.py to test_number.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\Util\
test_winrandom.py to test_winrandom.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\SelfTest\__ini
t__.py to __init__.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Signature\PKCS
1_PSS.py to PKCS1_PSS.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\asn1.py t
o asn1.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\Counter.p
y to Counter.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\number.py
to number.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\py3compat
.py to py3compat.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\randpool.
py to randpool.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\RFC1751.p
y to RFC1751.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\winrandom
.py to winrandom.cpython-36.pyc
byte-compiling C:\Program Files\Python36\Lib\site-packages\Crypto\Util\_number_n
ew.py to _number_new.cpython-36.pyc
running install_egg_info
Writing C:\Program Files\Python36\Lib\site-packages\pycrypto-2.6.1-py3.6.egg-inf
o

D:\tools\python\pycrypto-2.6.1>

惊喜的看到了running install_egg_info

然后,为了让同样踩坑的后来者们能更快的解决类似问题,我就花点时间罗列了一下,希望对大家有帮助,我自己也做个记录,以后再遇到这样的问题能快速解决。

 

猜你喜欢

转载自www.cnblogs.com/simplezhuo/p/10286475.html