I use a Python distribution named WinPython. Now I want my vim to use the python interpreter in WinPython as its default interpreter. I tried add the F:\WinPython\python-2.7.3.amd64
into my windows environment variables PATH
so that the vim can find Python27.dll
. Then I use the Vim command :echo has('python')
and its return 1. However, every time when I use any feature about Python, such as :python print 1
, the Vim will exit automatically. If I use GVim, there are no warnings and errors showed. If I use Vim Command Line, there is a error 'ImportError: No moulde named site'.
My OS: Win7(64bit)
My Vim version: 7.3(64bit)
My Python: python: 2.7.3.amd64 whit WinPython distribution