pyinstaller打包运行报错failed to execute script main
来源:互联网 发布:2017网络教育英语统考 编辑:程序博客网 时间:2024/06/05 18:48
pyqt5写完win32 应用程序后,经过pyinstaller打包成单个文件,运行弹出错误提示框:failed to execute script main
pycharm中pyinstaller打包参数:
Program:C:\Python\Python35\Scripts\pyinstaller.exe
Parameters: -w -F $FileName$
Working directory: $FileDir$
分析:
经google,发现pyinstaller 有--hidden-import 选项
--hidden-import MODULENAME,--hiddenimport MODULENAME
Name an import not visible in the code of the
script(s).This option can be used multiple times.
解决:
打包时加上 --hidden-import=queue
即Parameters配置修改为:
Parameters:--hidden-import=queue -w -F $FileName$
阅读全文
7 0
- pyinstaller打包运行报错failed to execute script main
- 使用pyinstaller 打包程序后,运行Failed to execute script MainPage 报错,解决办法
- eclipse android程序运行报错:Conversion to Dalvik format failed: Unable to execute dex:
- maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin
- Failed to execute aapt运行时报错
- Android Studio 运行新建项目报错:Failed to execute aapt
- 运行android程序报错 Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define L
- Android 工程运行报错 Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOv
- 从cvs导入Android项目,运行报错:Conversion to Dalvik format failed: Unable to execute dex的解决方法
- maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- maven打包的时候报错:Failed to execute goalcom.google.code.maven-svn-revision-number-plugin:svn-revision-num
- maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- maven因为测试类打包报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- maven3打包报错Failed to execute goal on project testaa: Could not resolve dependencies for project
- 新建项目报错 Failed to execute aapt
- maven项目启动报错:Failed to execute goal......
- Python使用pyinstaller进行打包报错
- Pyinstaller打包运行exe报错 No module named matplotlib.backends.backend_tkagg
- codeforces——B. An express train to reveries(全排列)
- H5移动开发
- Android控件2
- Java语言的前世今生
- 最小生成树-Prim算法
- pyinstaller打包运行报错failed to execute script main
- 高级语言,汇编语言,机器语言
- Spark-窗口函数
- Android常用控件-01
- Android studio如何提交代码到OSC(码云)
- 二叉树的深度
- 链式A+B
- python写简单的web静态服务器,对socket的深入理解。
- bootstarp table对某一字段过长做截取处理