Python version 2.7 required, which was not found in the registry

The reason for this error when installing some Python Windows modules lies in: you have 64-bit Python, but a 32-bit installer of new modules.

64-bit Python installer write to: HKLM|HKCU\SOFTWARE\

while 32-bit installer looks at : HKLM|HKCU\SOFTWARE\wow6432node\ 


I came across this problem when I tried to install

Python Imaging Library (PIL)

which is a 32-bit installer.


solution 1 – manually copy the settings in registry editor (CMD->regedit ->Enter)





Other solutions from

Usally, you have three choices:

  • the “clean” way: use 32-bit Python if you have to use 32-bit modules or extensions
  • copy HKLM\SOFTWARE\Python to HKLM\SOFTWARE\wow6432node\Python, but this will cause problems with binary distributions
  • only use 64-bit installers (see below)
  • install pure Python modules with setuptools instead of the distutils installer


5 responses to “Python version 2.7 required, which was not found in the registry

  1. It seems that PIL only works well with 32-bits Python, you can test by
    import _imaging
    to see if your Python version is suitable or not.

  2. dasmygatfu

    Assuming you installed to “c:\program files\python27″, use this registry path and run the PIL installation as administrator:

    (save the following as import.reg and run it)

    Windows Registry Editor Version 5.00

    @=”C:\\Program Files\\Python27\\”

  3. Sandeep

    Thank you for your post. It helped clear up the confusion for me!

  4. You’ll find it isn’t just a 32bit vs 64bit issue.

    Python appears to update the registry under HKEY_CURRENT_USER and some install look for python under HKEY_LOCAL_MACHINE.

    So a 64-bit lib install into 64-bit python can still get the same error message. It is actually a deployability problem with the lib installer as it doesn’t actually take too much trouble to look in both places.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Just another site

Jing's Blog

Just another site

Start from here......







Just another site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision


Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness



Paul Tennent

Wanderings in the Blogosphere

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web


Get every new post delivered to your Inbox.

Join 27 other followers

%d bloggers like this: