删除python的注册表_如何从Windows注册表中删除多个版本的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.

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,

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值