如何从Windows注册表中删除多个版本的Python [英] How to remove multiple versions of Python from the Windows registry

查看:615
本文介绍了如何从Windows注册表中删除多个版本的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 cx_Freeze 模块,它给了我无法定位网络位置错误以及不存在的路径名(据说是指向python?没)。然后,我尝试安装另一个模块 py2exe ,这次安装程序更加用户友好,并告知我在注册表中提到了两次Python。一个指向正确的Python目录,另一个指向相同的错误目录。

I was trying to install cx_Freeze module and it gives me the could not locate network location error along with a non existent path name(supposedly pointing to python? but it wasnt). Then I tried installing another module py2exe, this time the installer was a bit more user friendly and informed that I got two mentions of Python in my registry. One pointing to the correct Python directory, the other pointing to the same wrong one.

我的问题是如何或有可能从我的注册表中删除对Python的错误提及还是另一种解决方法?我想安装 cx_Freeze 。谢谢

My question is how or is it possible to delete the wrong mention of Python from my registry or another way around it? I wanted to install cx_Freeze. Thanks

推荐答案

我刚刚解决了它,但不确定这是否是正确的解决方法。这就是我的工作

I just resolved it but not sure if this is the right way to go about it. Here's what I did,

在cmd框中,键入 regedit ,然后单击确定,您将拥有注册表编辑器。
右键单击键名称 HKEY_LOCAL_MACHINE ,然后搜索错误的路径名称,该名称一直显示。几秒钟后,您将转到注册表中该路径的位置。我确实看到两次提到Python。不难找出错误的路径(错误的路径)并将其删除,而没有任何副作用。

In the cmd box, type regedit, and then click OK you will have the Registry editor. Right Clicked on the key name HKEY_LOCAL_MACHINE and searched for the wrong path name that kept showing up. In a few seconds it will take you to the location of that path in the registry. I did see two mentions of Python. Wasn't hard to figure out the wrong one(incorrect path) and deleted it without any side effects.

此后,我立即能够完美安装模块。

Immediately after this I was able to install the modules perfectly.

这篇关于如何从Windows注册表中删除多个版本的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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