pycrypto安装报错处理

windows 安装 pycrypto,报错如下:

C:\Users\Administrator>pip install  pycrypto
Collecting pycrypto
  Using cached https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz
Installing collected packages: pycrypto
  Running setup.py install for pycrypto ... error
    Complete output from command c:\users\administrator\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-ulesvgto\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-hzl0jck4\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\Crypto
    copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-3.7\Crypto
    copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.7\Crypto
    creating build\lib.win-amd64-3.7\Crypto\Hash
    copying lib\Crypto\Hash\hashalgo.py -> build\lib.win-amd64-3.7\Crypto\Hash
    copying lib\Crypto\Hash\HMAC.py -> build\lib.win-amd64-3.7\Crypto\Hash
    copying lib\Crypto\Hash\MD2.py -> build\lib.win-amd64-3.7\Crypto\Hash
     ....省略部分输出信息
    creating build\lib.win-amd64-3.7\Crypto\Signature
    copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win-amd64-3.7\Crypto\Signature
    copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-3.7\Crypto\Signature
    copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.7\Crypto\Signature
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    running build_ext
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Random.OSRNG.winrandom' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command "c:\users\administrator\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-ulesvgto\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-hzl0jck4\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-ulesvgto\pycrypto\

error: Microsoft Visual C++ 14.0 is required,缺少 Microsoft Visual C++ 14.0 ,安装。
下载链接:https://pan.baidu.com/s/1V8ec8VnOFZ_xRb_vwQuspA
提取码:uhvh
安装完成之后继续。

C:\Users\Administrator>pip install  pycrypto
Collecting pycrypto
  Using cached https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz
Installing collected packages: pycrypto
  Running setup.py install for pycrypto ... error
    Complete output from command c:\users\administrator\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-hixqa5cf\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-jdpzups3\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\Crypto
    copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-3.7\Crypto
    copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.7\Crypto
    ....省略部分输出信息
    copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.7\Crypto\Signature
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    running build_ext
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Random.OSRNG.winrandom' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\src
    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:\users\administrator\appdata\local\programs\python\python37\include -Ic:\users\administrator\appdata\local\programs\python\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/winrand.c /Fobuild\temp.win-amd64-3.7\Release\src/winrand.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(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

    ----------------------------------------
Command "c:\users\administrator\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-hixqa5cf\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-jdpzups3\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-hixqa5cf\pycrypto\

error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

尝试下载pycrypto的安装包安装, https://www.dlitz.net/software/pycrypto/ 依旧失败。
百度良久,最终通过设置环境变量解决.

找到Microsoft Visual Studio下的stdint.h,set环境变量,再执行 pip install pycrypto 安装即可。

C:\Users\Administrator>set CL=/FI"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include\\stdint.h"

C:\Users\Administrator>pip install pycrypto
Defaulting to user installation because normal site-packages is not writeable
Collecting pycrypto
  Using cached pycrypto-2.6.1.tar.gz (446 kB)
Using legacy 'setup.py install' for pycrypto, since package 'wheel' is not installed.
Installing collected packages: pycrypto
    Running setup.py install for pycrypto ... done
Successfully installed pycrypto-2.6.1

若仍失败,可尝试安装包安装。

C:\Users\Administrator>cd Desktop\pycrypto-2.6.1\pycrypto-2.6.1
C:\Users\Administrator\Desktop\pycrypto-2.6.1\pycrypto-2.6.1>set CL=/FI"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include\\stdint.h"

C:\Users\Administrator\Desktop\pycrypto-2.6.1\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:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/winrand.c /Fobuild\temp.win-amd64-3.7\Release\src/winrand.obj
winrand.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" ws2_32.lib advapi32.lib /EXPORT:PyInit_winrandom build\temp.win-amd64-3.7\Release\src/winrand.obj /OUT:build\lib.win-amd64-3.7\Crypto\Random\OSRNG\winrandom.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\winrandom.cp37-win_amd64.lib
winrand.obj : warning LNK4197: export 'PyInit_winrandom' specified multiple times; using first specification
   Creating library build\temp.win-amd64-3.7\Release\src\winrandom.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\winrandom.cp37-win_amd64.exp
Generating code
Finished generating code
building 'Crypto.Hash._MD2' 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:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/MD2.c /Fobuild\temp.win-amd64-3.7\Release\src/MD2.obj
MD2.c
src/MD2.c(101): warning C4018: '<': signed/unsigned mismatch
src/MD2.c(141): warning C4018: '<': signed/unsigned mismatch
c:\users\administrator\desktop\pycrypto-2.6.1\pycrypto-2.6.1\src\hash_template.c(134): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit__MD2 build\temp.win-amd64-3.7\Release\src/MD2.obj /OUT:build\lib.win-amd64-3.7\Crypto\Hash\_MD2.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\_MD2.cp37-win_amd64.lib
MD2.obj : warning LNK4197: export 'PyInit__MD2' specified multiple times; using first specification
   Creating library build\temp.win-amd64-3.7\Release\src\_MD2.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\_MD2.cp37-win_amd64.exp
Generating code
Finished generating code
building 'Crypto.Hash._MD4' 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:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/MD4.c /Fobuild\temp.win-amd64-3.7\Release\src/MD4.obj
MD4.c
....省略部分输出信息
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit__ARC4 build\temp.win-amd64-3.7\Release\src/ARC4.obj /OUT:build\lib.win-amd64-3.7\Crypto\Cipher\_ARC4.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\_ARC4.cp37-win_amd64.lib
ARC4.obj : warning LNK4197: export 'PyInit__ARC4' specified multiple times; using first specification
   Creating library build\temp.win-amd64-3.7\Release\src\_ARC4.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\_ARC4.cp37-win_amd64.exp
Generating code
Finished generating code
building 'Crypto.Cipher._XOR' 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:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/XOR.c /Fobuild\temp.win-amd64-3.7\Release\src/XOR.obj
XOR.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit__XOR build\temp.win-amd64-3.7\Release\src/XOR.obj /OUT:build\lib.win-amd64-3.7\Crypto\Cipher\_XOR.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\_XOR.cp37-win_amd64.lib
XOR.obj : warning LNK4197: export 'PyInit__XOR' specified multiple times; using first specification
   Creating library build\temp.win-amd64-3.7\Release\src\_XOR.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\_XOR.cp37-win_amd64.exp
Generating code
Finished generating code
building 'Crypto.Util.strxor' 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:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/strxor.c /Fobuild\temp.win-amd64-3.7\Release\src/strxor.obj
strxor.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit_strxor build\temp.win-amd64-3.7\Release\src/strxor.obj /OUT:build\lib.win-amd64-3.7\Crypto\Util\strxor.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\strxor.cp37-win_amd64.lib
strxor.obj : warning LNK4197: export 'PyInit_strxor' specified multiple times; using first specification
   Creating library build\temp.win-amd64-3.7\Release\src\strxor.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\strxor.cp37-win_amd64.exp
Generating code
Finished generating code
building 'Crypto.Util._counter' 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:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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 Kits\8.1\include\winrt" /Tcsrc/_counter.c /Fobuild\temp.win-amd64-3.7\Release\src/_counter.obj
_counter.c
src/_counter.c(99): warning C4244: '=': conversion from 'Py_ssize_t' to 'uint32_t', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit__counter build\temp.win-amd64-3.7\Release\src/_counter.obj /OUT:build\lib.win-amd64-3.7\Crypto\Util\_counter.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\_counter.cp37-win_amd64.lib
_counter.obj : warning LNK4197: export 'PyInit__counter' specified multiple times; using first specification
   Creating library build\temp.win-amd64-3.7\Release\src\_counter.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\_counter.cp37-win_amd64.exp
Generating code
Finished generating code
running install_lib
creating C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto
creating C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher
copying build\lib.win-amd64-3.7\Crypto\Cipher\AES.py -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher
....省略部分输出信息
copying build\lib.win-amd64-3.7\Crypto\Util\RFC1751.py -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.7\Crypto\Util\strxor.cp37-win_amd64.pyd -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.7\Crypto\Util\winrandom.py -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.7\Crypto\Util\_counter.cp37-win_amd64.pyd -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.7\Crypto\Util\_number_new.py -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.7\Crypto\Util\__init__.py -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util
copying build\lib.win-amd64-3.7\Crypto\__init__.py -> C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher\AES.py to AES.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher\ARC2.py to ARC2.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher\ARC4.py to ARC4.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher\blockalgo.py to blockalgo.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Cipher\Blowfish.py to Blowfish.cpython-37.pyc
....省略部分输出信息
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util\randpool.py to randpool.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util\RFC1751.py to RFC1751.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util\winrandom.py to winrandom.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util\_number_new.py to _number_new.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\Util\__init__.py to __init__.cpython-37.pyc
byte-compiling C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\Crypto\__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\pycrypto-2.6.1-py3.7.egg-info

出现 Writing C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\pycrypto-2.6.1-py3.7.egg-info ,即表示安装成功。