无法安装PIL 1.7 [英] Can't Install PIL 1.7

查看:134
本文介绍了无法安装PIL 1.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有python 2.7.3,我想安装PIL 1.7.
我下载了"PIL-1.1.7.win32-py2.7"并尝试安装它,但它向我显示了一个错误消息,提示它无法在注册表中找到python 2.7.

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版本2.7".

"python version 2.7 requried, which wasn't found in the registry".

我仔细检查了一下,确定我有python 2.7.3.
有什么问题吗?

I double check and I'm sure that I have python 2.7.3.
what is the problem?

推荐答案

如消息所示,PIL安装程序找不到注册表项,这是因为python安装程序将值放在32位操作系统版本路径"HKEY_LOCAL_MACHINE \ SOFTWARE \ Python \ PythonCore \ 2.7",但对于64位操作系统版本,应在"HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Python \ PythonCore \ 2.7"中进行设置.

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".

简单的解决方法是将以下内容复制并粘贴到文本文件中,然后将扩展名更改为.reg并运行它,它将添加所需的注册表,然后安装PIL.

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.

从此处复制到末尾:

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"

这篇关于无法安装PIL 1.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆