吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 245|回复: 12
收起左侧

[求助] 学习PyQt打包问题

[复制链接]
durhummer 发表于 2024-3-15 12:53
本帖最后由 durhummer 于 2024-3-15 16:14 编辑

请求各位大大,我使用   pyinstaller --noconfirm --onedir --windowed  --name "Auto Test Player" main.py 打包为 exe 文件后不能执行。 双击无响应。  能帮忙分析下问题吗。

我用了这些 包
altgraph==0.17.4
appdirs==1.4.4
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
coloredlogs==15.0.1
contourpy==1.2.0
cycler==0.12.1
darkdetect==0.8.0
filelock==3.13.1
flatbuffers==24.3.7
fonttools==4.49.0
fsspec==2024.2.0
graphsurgeon @ file:///D:/Softwarenv/TensorRT-8.6.1.6/graphsurgeon/graphsurgeon-0.4.6-py2.py3-none-any.whl#sha256=0fbadaefbbe6e9920b9f814ae961c4a279be602812edf3ed7fb9cc6f8f4809fe
humanfriendly==10.0
idna==3.6
Jinja2==3.1.3
kiwisolver==1.4.5
Mako==1.3.2
MarkupSafe==2.1.5
matplotlib==3.8.3
mpmath==1.3.0
networkx==3.2.1
numpy==1.26.4
onnx==1.15.0
onnx-graphsurgeon @ file:///D:/Softwarenv/TensorRT-8.6.1.6/onnx_graphsurgeon/onnx_graphsurgeon-0.3.12-py2.py3-none-any.whl#sha256=1ded3e1c4d6d9870f1974c89e1f8aa0ef72c3489bbd9762ac9a5b1b64eb15678
onnxruntime-gpu==1.17.1
opencv-python==4.9.0.80
packaging==23.2
pandas==2.2.1
pefile==2023.2.7
pillow==10.2.0
platformdirs==4.2.0
protobuf==4.25.3
psutil==5.9.8
py-cpuinfo==9.0.0
pycuda==2024.1
pyinstaller==6.4.0
pyinstaller-hooks-contrib==2024.2
pyparsing==3.1.2
PyQt6==6.4.2
PyQt6-Fluent-Widgets==1.5.1
PyQt6-Frameless-Window==0.3.8
pyqt6-plugins==6.4.2.2.3
PyQt6-Qt6==6.4.3
PyQt6-sip==13.6.0
pyqt6-tools==6.4.2.3.3
pyreadline3==3.4.1
PySide6==6.6.2
PySide6_Addons==6.6.2
PySide6_Essentials==6.6.2
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
pytools==2023.1.1
pytz==2024.1
pywin32==306
pywin32-ctypes==0.2.2
PyYAML==6.0.1
qt6-applications==6.4.3.2.3
qt6-tools==6.4.3.1.3
requests==2.31.0
scipy==1.12.0
seaborn==0.13.2
shiboken6==6.6.2
six==1.16.0
sympy==1.12
tensorrt @ file:///D:/Softwarenv/TensorRT-8.6.1.6/python/tensorrt-8.6.1-cp311-none-win_amd64.whl#sha256=1b833d9959f4cd9b4a2f703b4f8f4474eedcaee7ce5bbab6036760f6d93e2680
tensorrt-dispatch @ file:///D:/Softwarenv/TensorRT-8.6.1.6/python/tensorrt_dispatch-8.6.1-cp311-none-win_amd64.whl#sha256=aa78667279d67289bf5d06128ade99a4178141ed8f238566ff670fcf1ddafaa6
tensorrt-lean @ file:///D:/Softwarenv/TensorRT-8.6.1.6/python/tensorrt_lean-8.6.1-cp311-none-win_amd64.whl#sha256=c0caf578c011d3f3503bac0aa6b4e425cc6037f4fd52962ba008f4cf863875bd
thop==0.1.1.post2209072238
torch==2.2.1+cu118
torchaudio==2.2.1+cu118
torchvision==0.17.1
tqdm==4.66.2
typing_extensions==4.10.0
tzdata==2024.1
ultralytics==8.1.25
urllib3==2.2.1

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

FCGkitty 发表于 2024-3-15 15:22
少包了呗.....先调试,能运行再打包,不然看不到报错...咋解释
sakura32 发表于 2024-3-15 15:30
-w去掉,重新打包后看弹出的控制台窗口报错原因,如果一闪而过那就用手机录屏后慢放找报错
 楼主| durhummer 发表于 2024-3-15 15:35
FCGkitty 发表于 2024-3-15 15:22
少包了呗.....先调试,能运行再打包,不然看不到报错...咋解释

可以运行调试的
 楼主| durhummer 发表于 2024-3-15 15:41
报错信息 '.\Auto Test Player.exe'

📢 Tips: QFluentWidgets Pro is now released. Click https://qfluentwidgets.com/pages/pro to learn more about it.

No section: 'server'
Laotu 发表于 2024-3-15 15:46
[Python] 纯文本查看 复制代码
pyinstaller --onefile --icon=favicon.ico --name="输出的名称" main_test.py
FCGkitty 发表于 2024-3-15 15:51
本帖最后由 FCGkitty 于 2024-3-15 15:52 编辑

@durhummer 不是提示server不存在么
anning666 发表于 2024-3-15 15:54
如果不涉及secret的话,建议发布代码,有兴趣的大佬可以研究看看
 楼主| durhummer 发表于 2024-3-15 16:02
FCGkitty 发表于 2024-3-15 15:51
@durhummer 不是提示server不存在么

大佬完全不知道这个错误是什么意思。。 我直接用python 跑 是不会报错的
 楼主| durhummer 发表于 2024-3-15 16:09
Laotu 发表于 2024-3-15 15:46
[mw_shl_code=python,true]pyinstaller --onefile --icon=favicon.ico --name="输出的名称" main_test.py[/ ...

我用这个打包后, 3g 的大小, 然后执行也是出现 no server 提示然后就退出了
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-28 19:32

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表