原文:【Python】pyinstaller打包运行报错failed to execute script main

前言 最近用pyinstaller打包的时候一直报 failed to execute script main 。 最终使用 pyinstaller hidden import pkg resources F main.py 顺利打包。 注意:语句中的 F 一定要大写 转载原文 本文转载自pyinstaller打包运行报错failed to execute script main pyqt 写完w ...

2020-01-14 11:07 0 3847 推荐指数:

查看详情

Pyinstaller打包运行报错failed to execute script main 解决办法

打包时把代码换成:pyinstaller --hidden-import=pkg_resources -F main.py 可以成功。 最初是为了打包时隐藏代码窗口,用了绝对路径,出现这个问题,改成上面代码后就解决了。 我的用法:pyinstaller38 --hidden-import ...

Mon Sep 28 03:55:00 CST 2020 0 3532
pyinstaller-Failed to execute script main解决

使用pyinstaller打包一个程序.使用了pyinstaller -F -w main.py. 运行程序的时候出"Failed to execute script main"错误. 查看了下对应文件夹内的文件,没有发现log或者其他文件,也没有调试信息. 想来想去,换了个命令 ...

Fri Aug 04 22:58:00 CST 2017 0 8449
pyinstaller发布exe,弹出Failed to execute script main

1.在PyCharm中按Alt+F12打开Terminal对话框 1.1我的项目文件放在wxpython目录下,D:\learn\Weather index insurance\wxpython>pyinstaller -F -w teaindex_main.py 1.2运行结束后在D ...

Wed Jun 05 01:30:00 CST 2019 0 599
Pyinstaller 打包exe 报错 "failed to execute script XXX"的一种解决方案

最近用PyQt5写了一个界面小程序,需要打包成exe给到其他windows上使用,一开始使用python 3.7 64位,用pyinstaller打包exe,在64位机上运行正常。 但是目标电脑是32位的,所以需要打包32位exe,然后问题就出现了。 打包32位exe, 虽然网上有教程说 ...

Tue Jul 30 03:39:00 CST 2019 0 15723
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM