Skip to content

VIM and Python with Windows #526

@zQueal

Description

@zQueal

I have Python 2.7.10 x64 installed along with Vim 7.4 x64 compiled with both +python/dyn and +python3/dyn support.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 11 2015 11:37:42)
MS-Windows 64-bit console version
Included patches: 1-965
Compiled by veegee@veegee-win8
Huge version without GUI.  Features included (+) or not (-):
+acl             +eval            +mouse           +syntax
+arabic          +ex_extra        -mouseshape      +tag_binary
+autocmd         +extra_search    +multi_byte      +tag_old_static
-balloon_eval    +farsi           +multi_lang      -tag_any_white
-browse          +file_in_path    -mzscheme        -tcl
++builtin_terms  +find_in_path    -netbeans_intg   -tgetent
+byte_offset     +float           +path_extra      -termresponse
+cindent         +folding         -perl            +textobjects
+clientserver    -footer          +persistent_undo +title
+clipboard       +gettext/dyn     -postscript      -toolbar
+cmdline_compl   -hangul_input    +printer         +user_commands
+cmdline_hist    +iconv/dyn       +profile         +vertsplit
+cmdline_info    +insert_expand   +python/dyn      +virtualedit
+comments        +jumplist        +python3/dyn     +visual
+conceal         +keymap          +quickfix        +visualextra
+cryptv          +langmap         +reltime         +viminfo
+cscope          +libcall         +rightleft       +vreplace
+cursorbind      +linebreak       -ruby            +wildignore
+cursorshape     +lispindent      +scrollbind      +wildmenu
+dialog_con      +listcmds        +signs           +windows
+diff            +localmap        +smartindent     +writebackup
+digraphs        +lua/dyn         -sniff           -xfontset
-dnd             +menu            +startuptime     -xim
-ebcdic          +mksession       +statusline      -xterm_save
+emacs_tags      +modify_fname    -sun_workshop    -xpm_w32

While running Vim :echo has('python') returns 1.

I was able to get it working long enough to install a single plugin with Plug which requires Python support. After changing nothing, it's now no longer working.

Additionally, I can clean plugins just fine:

1 Searching for unused plugins in C:\Users\zqueal\.vim\plugged
2 [=====]                                                              
3                                                                      
4 Already clean.

This would leave me to believe that it's at least working intermittently. However, when running :python import sys; print(sys.version) I get:

E887: Sorry, this command is disabled, the Python's site module could not be loaded.

Anyone able to help me out, here?


Fearing this was an issue with x64, I opted to reinstall both Vim and Python27 for 32-bit. A new error is surfacing:

E121: Undefined variable: pyv

My vimrc has no let g: in it as E121 would suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions