小编Jan*_*oss的帖子

Windows上的GIT bash:VIM找不到Python3

早安,我的VIM无法在Windows上找到我的Python安装.提前感谢所有花时间阅读这个问题的人:)

我的当前设置 我目前正在Windows上的GIT Bash中运行VIM 8.0.27(来自https://git-scm.com/download/win的未修改的64位设置).此外,我在以下目录中安装了64位版本的Python 3.5.2:"C:/ Python35 /"我在我的PATH变量中添加了"C:/ Python35 /"和"C:/ Python35/Scripts /" .VIM似乎是用Python支持编译的,因为版本文本包括"+ python/dyn"和"+ python3/dyn".

我的问题

在我看来,VIM无法找到我的python安装.当我调用":echo has('python')"或":echo has('python3')"它返回0.当我尝试启动安装了python插件的VIM时,我收到以下错误消息:"UltiSnips需要py> = 2.7或py3".

长期目标

我的目标是让Greg Hurrel的VIM配置在Windows 7上运行(https://github.com/wincent/wincent).除此之外,它还需要Python和Ruby.我也很欣赏有关实现这一目标的其他(更好)方法的提示.

细节

$ python35.dll

/c/Python35/python3.dll
Run Code Online (Sandbox Code Playgroud)

在vim中:":echo $ PATH"

/c/Users/JannikV/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/JannikV/bin:/c/Python35/Scripts:/c/Python35:/c/Program Files/Intel/iCLS Client:/c/Windows/system32: ...
Run Code Online (Sandbox Code Playgroud)

$ vim --version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 12 2016 13:28:14)
Included patches: 1-27
Compiled by <alexpux@gmail.com>
Huge version without GUI.  Features included (+) or not (-): …
Run Code Online (Sandbox Code Playgroud)

python windows git vim mingw-w64

8
推荐指数
1
解决办法
1052
查看次数

标签 统计

git ×1

mingw-w64 ×1

python ×1

vim ×1

windows ×1