在Win 7上安装Python 2.7 32位:没有注册表项? [英] Python 2.7 32-bit install on Win 7: No registry keys?

查看:57
本文介绍了在Win 7上安装Python 2.7 32位:没有注册表项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从python.org下载了Python 2.7.2 Windows x86 32位MSI,并将其安装在64位Windows 7系统上.一切正常(至少命令行解释器启动并运行),但是安装过程不会在Windows注册表的HKEY_LOCAL_MACHINE/SOFTWARE下创建任何Python条目.

I have downloaded the Python 2.7.2 Windows x86 32-bit MSI from python.org and installed it on a 64-bit Windows 7 system. Everything works (at least the command-line interpreter starts and runs), but the install process does not create any Python entries under HKEY_LOCAL_MACHINE/SOFTWARE in the Windows registry.

各种博客都在尝试配置第三方库时提到了 incomplete Python注册表项引起的问题,但我没有找到完整的 a 的描述.注册表中的Python条目.

Various blogs refer to problems created by incomplete Python registry entries when attempting to configure third-party libraries, but I have not found a description of the complete absence of a Python entry in the registry.

我计划仅将Python与Google Apps Engine SDK和django-nonrel一起用于一些相当简单的Google Apps项目.缺少Python注册表项对我来说可能甚至不是问题,但是Django设置文档假定其存在并建议向其添加路径信息,以填充Python的sys.path列表.

I plan to use Python only with the Google Apps Engine SDK and (hopefully) django-nonrel for some fairly simple Google Apps projects. The absence of a Python registry key may not even be an issue for me, but the Django setup docs assume its existence and suggest adding path information to it as a way to populate Python's sys.path list.

还有其他人遇到吗?创建密钥是否需要额外的安装步骤?我应该使用regedit手动创建它吗?甚至需要它吗,或者可以将PATH和/或PYTHONPATH环境变量用于所有内容?

Anyone else run into this? Is an additional install step necessary to create the key? Should I manually create it using regedit? Is it even needed, or can the PATH and/or PYTHONPATH environment variables be used for everything instead?

推荐答案

安装在64位OS上的32位应用程序将其注册表值存储在以下位置: HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node.如果您在那里查看,则应该会看到所需的设置.

32-bit applications installed on 64-bit OSes store their registry values in: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. If you look there, you should see the settings you are looking for.

这篇关于在Win 7上安装Python 2.7 32位:没有注册表项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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