After installing YouCompleteMe in vim, when opening vim, an error is reported: _socket.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type

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

Guess you like

Origin blog.csdn.net/lianshaohua/article/details/108627347