Python安装失败,报0x80070643-安装时发生严重错误。

背景

之前安装了3.12.4,因为没用到,就用Revo Uninstaller Pro卸载了,连注册表都清理了。后面看到别人写的一个工具不符合预期,想对源码修改下,用到了Python,于是重新安装,出现上面报错。

解决方法尝试

因为系统里已经肉眼找不到没卸载干净的项了,所以其他相关文章里提到的点击“修复”解决的,已经不适合这场景了,因为压根不会出现这个选项(反正我没看到)。于是下了一个3.12.3,安装结果提示已经安装了3.12的版本(忘了截图,看意思应该是装了3.12.4,就不能装其他的3.12.X版本了)。

于是下载了一个3.11.7,安装成功了!

然后又安装3.12.4,覆盖到3.11.7的安装路径,也安装成功了!这意思两个版本安装在一个目录下还共存了?(把3.12.4安装到其他路径是否也成功就没试了,我猜应该是可以的,建议先安装到不同路径,别覆盖,如果不可以再覆盖吧)

 然后把3.11.7卸载了,卸载3.12.4时又出现标题那个严重错误了,不过此时有修复选项了,点修复(Repair)

修复完后再点击下面的Uninstall,卸载,成功。 

把底下的Python Lanucher也卸载了。

然后重新安装3.12.4,成功了! (一是为了验证卸载后重新安装失败的问题,二是刚才是覆盖安装,可能存在未知问题)。

总结

如果安装出现标题的报错信息,安装的时候有修复这个选项,那么就先修复,再安装(反正我没见到)。

如果没有修复选项,就安装一个另外的版本(注意3.12.X看做同一版本,3.11.X和3.12.X看做不同版本),然后再安装你想要的版本,安装完后再点修复(修复在 应用和功能 里找到Pyhton点修改出现)。

至于其他问题,有修复点修复吧。Revo Uninstaller Pro连注册表都清理了,还出现这问题,建议Python卸载的时候还是按应用和功能里的“卸载”吧,以防后续再安装时遇到标题的问题。

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
As an AI language model, I cannot access your system or view the code you are working on. However, I can provide you with general solutions to the error message you have shared. The error message "Solving environment: failed with initial frozen solve. Retrying with flexible solve" typically occurs when the package manager (such as Conda or pip) encounters difficulty in resolving dependencies for the packages you're trying to install or update. To resolve this issue, you can try the following solutions: 1. Update your package manager: You can try updating your package manager to the latest version. This can be done by running the command `conda update conda` or `pip install --upgrade pip`. 2. Remove conflicting packages: You can try removing any conflicting packages that may be causing the issue. This can be done by running the command `conda remove <package_name>` or `pip uninstall <package_name>`. 3. Use a different channel: Sometimes, the package you're trying to install may not be available in the default channel. In such cases, you can try using a different channel. This can be done by running the command `conda install -c <channel_name> <package_name>`. 4. Create a new environment: If none of the above solutions work, you can try creating a new environment and installing the packages in that environment. This can be done by running the command `conda create --name <env_name> <package_name>`. These are some of the solutions you can try to resolve the "Solving environment: failed with initial frozen solve. Retrying with flexible solve" error message.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值