if you pip install pycrypto with python,but you get error status,you have to fix something.
error status43): error C2059: 語法錯誤: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
46): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
47): error C2146: 語法錯誤: 遺漏 ')' (在識別項 '_Numerator' 之前
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
47): error C2061: 語法錯誤: 識別項 '_Numerator'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
47): error C2059: 語法錯誤: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
47): error C2059: 語法錯誤: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
49): error C2059: 語法錯誤: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
51): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
57): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
64): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
70): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
77): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
83): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
90): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\
96): error C2143: 語法錯誤: 遺漏 '{' (在 '__cdecl' 之前)
error: command 'E:\\Program Files (x86)\\Microsoft Visual St
unity\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\cl.exe'
status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'f:\users\*\a
grams\python\python38\python.exe' -u -c 'import sys, setuptools,
rgv[0] = '"'"'C:\\Users\\*\\AppData\\Local\\Temp\\pip-instal
ypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\*\\AppData\\Lo
nstall-lnceekub\\pycrypto\\setup.py'"'"';f=getattr(tokenize, '"'
n)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"')
compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\U
ta\Local\Temp\pip-record-1tc83ht7\install-record.txt' --single-v
y-managed --compile Check the logs for full command output.
1. copy stdint.h from {your hard}:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include
2.copy stdint.h to C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt
Maybe 10.0.17763.0 not same,you can get this from error status
3.add code #include "stdint.h" in inttypes.h and save it.
4. pip install pycrypto again.
No comments:
Post a Comment