博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
eric6安装插件cx-freeze的问题
阅读量:2237 次
发布时间:2019-05-09

本文共 1072 字,大约阅读时间需要 3 分钟。

还是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 []

改为:

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(7)
    elif majorVersion == 2:
        minorVersions = range(5, 9)
    else:
        return []
然后重新压缩为zip,重新安装插件,激活,搞定。

    

PS:不好意思,一直都很忙,这篇和上篇写的比较粗糙,可能很多人还是看不懂。我已经将问题反馈给eric6开源组织,也许会被看到。

有人遇到和我一样的问题,可以加我QQ 57049067。也许我不能马上联系,但总会看到。

转载地址:http://bdtbb.baihongyu.com/

你可能感兴趣的文章
java1.8中创建hashmap的初始化大小设置标准
查看>>
mark一下,service的实现层没有加@service注解。
查看>>
jq对象转换成js对象。已经jq的复合选择器。
查看>>
(一)alin‘s mysql学习笔记----概述
查看>>
(二)alin’s mysql学习笔记----mysql的存储引擎
查看>>
(三)alin’s mysql学习笔记----常用的join连接查询
查看>>
(四)alin’s mysql学习笔记----索引简介
查看>>
分布式系统中的幂等性的理解
查看>>
spring的注解开发中的常用注解(一)------@bean @Configuration @ComponentScan @Import @Scope @Lazy
查看>>
(五)alin’s mysql学习笔记----索引性能分析
查看>>
Spring中使用@Transactional注解进行事务管理的时候只有应用到 public 方法才有效
查看>>
springboot整合rabbitmq及rabbitmq的简单入门
查看>>
mysql事务和隔离级别笔记
查看>>
事务的传播属性(有坑点)自调用失效学习笔记
查看>>
REDIS缓存穿透,缓存击穿,缓存雪崩原因+解决方案
查看>>
动态代理实现AOP
查看>>
23种常见的java设计模式
查看>>
关于被final修饰的基本数据类型一些注意事项
查看>>
java Thread中,run方法和start方法的区别
查看>>
在 XML 中有 5 个预定义的实体引用
查看>>