GVIM crashes when running python

前端 未结 2 650
萌比男神i
萌比男神i 2021-01-12 10:05

I cannot use python in GVIM. When I type: :python print 1 it just closes GVIM without any message. I triend to run it with -V90logfile but I couldn

2条回答
  •  爱一瞬间的悲伤
    2021-01-12 10:33

    Vim seems finicky about the Python DLL version. 2.7.11 (the current one, as I write this) doesn't work. I installed 2.7.9 per another SO answer on a similar topic and it worked fine.

    Note that the Python installer puts the DLLs into C:\Windows\system32 (or similar depending on language), this should be in your path automatically but in my case I just wanted Python-in-Vim to work regardless of what I had installed so I copied the 2.7.9 DLLs into the Vim installation directory.

    Perhaps the Python virtualenv package would help here too but I have only just learned of it and not tried it.

提交回复
热议问题