I have python 2.7.3 and I want to install PIL 1.7.
I downloaded "PIL-1.1.7.win32-py2.7" and try to install it but it shows me an error messege that it can't find python 2.7 in the registry.
"python version 2.7 requried, which wasn't found in the registry".
I double check and I'm sure that I have python 2.7.3.
what is the problem?
To use its developers' own description, Pillow is the friendly PIL fork that kept the library alive and includes support for Python 3.
Step 2: To check if PIL is successfully installed, open up the python terminal by typing python3 in the terminal. This will open up the python3 interactive console now type the following command to check the current version of the PIL. This will output the currently installed version of the PIL.
The error "Could not find a version that satisfies the requirement PIL" occurs when we try to pip install the PIL package. To solve the error, install Pillow which is a maintained fork of PIL and can be used as a drop-in replacement.
As the message says, PIL installer can't find registry keys, this because python installer put values in 32 bit OS version path "HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7" but for 64 bit OS version it should be set in "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7".
Easy fix is to copy and paste below in a text file, then change the extension to .reg and run it, it will add the required registry, then install PIL.
Copy from here to the end:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Help]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Help\Main Python Documentation]
@="C:\\Python27\\Doc\\python273.chm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath]
@="C:\\Python27\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath\InstallGroup]
@="Python 2.7"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Modules]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\PythonPath]
@="C:\\Python27\\Lib;C:\\Python27\\DLLs;C:\\Python27\\Lib\\lib-tk"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With