安裝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

 

然后,為了讓同樣踩坑的后來者們能更快的解決類似問題,我就花點時間羅列了一下,希望對大家有幫助,我自己也做個記錄,以后再遇到這樣的問題能快速解決。

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM