eric6安装插件cx-freeze的问题

在使用Python3.6和pyqt5.8的eric6环境中,尝试安装cx-freeze插件时遇到错误提示找不到cxfreeze.bat。通过修改插件源代码中关于Python版本判断的部分,将3.6版本的minorVersions范围扩大到7,解决了此问题。重新打包并安装插件后,成功激活。已将问题反馈给eric6开源社区,有相同困扰的读者可以联系作者。
摘要由CSDN通过智能技术生成


还是Python3.6 pyqt5.8 eric6,安装一个python to exe的工具cx-freeze,然后想在eric6上安装下插件方便操作。

一直在插件状态信息中提示:

                "The cxfreeze.bat executable could not be found."
                "Did you run the cxfreeze-postinstall script?"


解压插件跟踪安装的python类实现,发现是不支持最新的3.5和3.6导致。

代码:

def _findExecutable(majorVersion):
    """
    Restricted function to determine the names of the executable.
    
    @param majorVersion major python version of the executables (int)
    @return names of the executable (list)
    """
    # Determine Python Version
    if majorVersion == 3:
        minorVersions = range(5)
    elif majorVersion == 2:
        minorVersions = range(5, 9)
    else:
        return []

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值