Replies: 17 comments 1 reply
-
1、打包框架:pyinstaller3.4 |
Beta Was this translation helpful? Give feedback.
-
1 打包框架 pyinstaller3.4 解决办法: 没有找到!。 |
Beta Was this translation helpful? Give feedback.
-
打包能出.exe 但是运行的时候, 一闪而过 |
Beta Was this translation helpful? Give feedback.
-
-w参数试试 |
Beta Was this translation helpful? Give feedback.
-
@zouhaozouhao 看一下'D:\python_work1\1\venv\lib\site-packages\PyQt5\Qt\bin\libGLESv2.dll' 这个dll文件存不存在,打包的时候加上控制台方式,然后在cmd中运行,看看有没有错误提示 |
Beta Was this translation helpful? Give feedback.
-
@lls-git 把你的杀毒安全等软件先关掉,另外在非共享目录测试,把脚本放到桌面上新建文件夹里测试下打包 |
Beta Was this translation helpful? Give feedback.
-
这个libGLESv2.dll文件存在。 使用 pyinstaller -w UI.py , 在运行的时候, 没有warning, 但是生成之后, 在dist 文件下找到UI.exe运行, 显示 Failed to execute script UI. 请问这个情况下要怎么去进一步的调试 |
Beta Was this translation helpful? Give feedback.
-
重新看了一下 CMD, 发现INFO 中 有这些个提示
|
Beta Was this translation helpful? Give feedback.
-
@zouhaozouhao 先试试简单脚本打包,有可能是有些import的模块没打包进去,用控制台方式,运行也是cmd里打开exe |
Beta Was this translation helpful? Give feedback.
-
仔细看了下出错信息应该是LoadLibraryEx这个找不到 测试了简单脚本打包都正常 |
Beta Was this translation helpful? Give feedback.
-
@lls-git QWebEngineView 这个东西好像不能自动打包过去,不知道pyinstaller支不支持。QtWebEngineProcess.exe 这个文件要复制到打包后的目录里面去。相关的还有translations\qtwebengine_locales 这些文件 |
Beta Was this translation helpful? Give feedback.
-
我目前不是找不到 |
Beta Was this translation helpful? Give feedback.
-
@lls-git PyQtClient 是32位,我没有打包。是直接整个python纯净环境+PyQt库 |
Beta Was this translation helpful? Give feedback.
-
我看有个PyQtClient-x86-win32-exe |
Beta Was this translation helpful? Give feedback.
-
我并没有编译,而是使用C++写了一个exe加载python.dll 直接执行主文件.py 就好比在命令行下用python.exe xxx.py一样的道理 |
Beta Was this translation helpful? Give feedback.
-
哦 |
Beta Was this translation helpful? Give feedback.
-
2:pyinstaller在 pyqt5.12版本之后打包的一个问题 , 在本机打包后可以用, 到别的机器就不行
可以先降为pyqt5.10.1 + pyinstaller 3.4 打包 ; 或者在这里面找找解决办法: |
Beta Was this translation helpful? Give feedback.
-
格式:
1.使用的打包框架(e.g. pyinstaller/py2exe ... 版本号) 例如 pyinstaller 3.4;
2.出现的错误;
3.解决办法;
Beta Was this translation helpful? Give feedback.
All reactions