gpt4 book ai didi

Python3.5.2 bdist_wininst : Python version -32 required, 在注册表中找不到

转载 作者:可可西里 更新时间:2023-11-01 14:02:23 25 4
gpt4 key购买 nike

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

我通常使用 setuptools 的 bdist_wininst 选项在 Windows 上部署我的 Python 包。这样同事们只要启动windows installer exe就可以很轻松的更新一个包了。但是,由于我更改为 Python 3.5.2,因此在尝试安装包时出现以下错误:

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

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

最佳答案

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

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

显然,这是一个完整的 hack。使用风险自负。

关于Python3.5.2 bdist_wininst : Python version -32 required, 在注册表中找不到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40507707/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com