无法安装PIL 1.7

编程入门 行业动态 更新时间:2024-10-27 22:30:56
本文介绍了无法安装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

本文发布于:2023-06-08 06:35:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/576212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PIL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!