windows下gvim安装好UltiSnips插件
启动vim时,提示requires py >= 2.6 or any py3
首先,查看是否支持python
打开givm,:version
查看编译的选项:

可见是同时支持python2和3的
命令模式输入py 1
,输出如下,缺少python27.dll

同样输入py3 1
,提示缺少python36.dll
E370:Could not load library python36.dll
安装对应Python版本
我需要python3的版本
去官网下载python36的版本,安装时记得勾选加入环境变量的选项
安装完成后,去python安装目录,找到 python36.dll 文件复制到 C:\Windows\System32
win + r 打开 cmd,输入regsvr32 %windir%\system32\python36.dll /s
此时打开vim便没有了错误提示,UltiSnips插件也可用了。
注意:记得vim和python版本需统一,要么都是64位,要么都是32位版本。
网友评论