This is not a bug in vim
It’s not a YouCompeleteMe bug
Rather, if you have problems installing python3, just follow the instructions below to re-install python3, and import ctypes in python3. If no error is reported, the repair is successful.
It took two hours to solve the problem. . . . . . I always thought it was a problem with vim and ycm, because python3 can be used normally. . .
It's all tears. . .
详见:issues-3760:https://github.com/ycm-core/YouCompleteMe/issues/3760