Python3.5.2 bdist_wininst:需要Python版本-32,在注册表中没有找到 [英] Python3.5.2 bdist_wininst: Python version -32 required, which was not found in the registry

查看:34
本文介绍了Python3.5.2 bdist_wininst:需要Python版本-32,在注册表中没有找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 上使用 Python 3.5.2 32 位创建的包有问题.

I' ve got an issue with a package I created with Python 3.5.2 32-bit on Windows 7.

我通常使用 setuptools 的 bdist_wininst 选项在 Windows 上部署我的 Python 包.这样,我的同事只需启动 Windows 安装程序 exe 即可轻松更新软件包.但是,自从我更改为 Python 3.5.2 后,在尝试安装软件包时出现以下错误:

I normally deploy my Python packages on Windows by using the bdist_wininst option of setuptools. This way it is very easy for my colleagues to update a package by just starting the windows installer exe. However since I changed to Python 3.5.2 I get the following error when trying to install a package:

Python version -32 required, which was not found in the registry

对我来说,安装程序似乎正在寻找一个名为 "-32" 的 Python 版本,但它找不到.有人遇到过同样的问题或找到了解决方案吗?

For me it seems that the installer is looking for a Python version named "-32" which it cannot find. Did someone come across the same problem or find a solution yet?

推荐答案

看起来这是一个已知错误:https://bugs.python.org/issue26630.

It looks like this is a known bug: https://bugs.python.org/issue26630.

我发现的解决方法是在十六进制编辑器中手动编辑可执行安装程序.字符 -32 出现在位置 7A5D4-7A5D6.将它们替换为所有 NULL 字符.之后,安装程序似乎工作正常.

The workaround that I discovered is to edit the executable installer manually in a hex-editor. The characters -32 appears in locations 7A5D4-7A5D6. Replace them with all NULL characters. Afterwards, the installer seems to work fine.

显然,这是一个完整的黑客.使用风险自负.

Obviously, this is a complete hack. Use at your own risk.

这篇关于Python3.5.2 bdist_wininst:需要Python版本-32,在注册表中没有找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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