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