2014-01-13 30 views
1

我在我的Windows 7,当我键入 :python print hello 我得到了以下错误 enter image description hereGvim无法执行:python nor:python3。 Windows7中,Python33

同样的,当我输入 :python3 print hello 的错误更改为 enter image description here

安装的版本GVIM我安装的Gvim的信息是 enter image description here

而我的python是ve rsion 3.3.2。我已经将路径C:\Python33\DLLs设置为我的$Path环境变量。在DLL目录中,有一个python3.dll

任何帮助表示赞赏。 :-)

回答

1

这听起来像是你的Gvim没有用python/python3构建,或者它确实找不到python32.dll。

    :version输出
  1. 你看到+python和/或+python3
  2. 其中是python32.dll位于您的系统上? (你提到python3.dll但不python32.dll这是它正在寻找)

如果问题是#1,则How to enable Python support in gVim on Windows?可能会有所帮助。

+0

也许我需要编译并建立在我的窗户GVIM。 :-( 1.在输出中没有+ python + + python3:版本号 2.号码没有python32.dll。 谢谢。:-) –

+0

我相信你会看到一个'-python '和'-python3'输出正确(只是检查我们正在看同一件事情)。编辑我的答案与希望有用的信息链接。 – verdammelt

+0

我重复检查,没有python或python3。我很困惑vim如何与Python集成。为什么这个集成不能通过命令配置,例如在vimrc中? –

1

你安装了64位Python吗?如果是这样,你可能会遇到这样的问题。我遇到过类似的问题,所以我删除了64位Python并安装了32位Python,并且它工作正常。另一方面,如果您必须绝对使用64位Python,请尝试使用64位Vim版本 - 您可以尝试此链接。 http://solar-blogg.blogspot.com.au/p/vim-build.html

0

你必须把这个在你的路径:C:\Python33C:\Python33\DLLs