Skip to content

Instantly share code, notes, and snippets.

@giggio
Last active January 8, 2017 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giggio/a6525a91bd7207d65741f31dbea64eae to your computer and use it in GitHub Desktop.
Save giggio/a6525a91bd7207d65741f31dbea64eae to your computer and use it in GitHub Desktop.
Solving python load problem in Vim in Windows

This is according to Bart on StackOverflow. I have tested it on Vim 8.0.118 and Python 2.7.11.

The error I was getting was:

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

If I wanted to check for python, with :echo has('python'), the answer was always 1. Still, trying to do :py print(1) would fail.

This is how you solve it:

cd HKLM:\SOFTWARE\WOW6432Node\Python\PythonCore
mv 2.7 2.7-32

This is the bug reference on python.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment