From b8775f9357c4713b972993ce79e6974dabd7cc0d Mon Sep 17 00:00:00 2001 From: esea_info Date: Wed, 12 Apr 2023 18:53:36 +0800 Subject: [PATCH] readme --- README.md | 10 +++++++++- app.spec | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c8c7b59..0878c92 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,12 @@ data/output 信息 抬头 -数据(时间--值) \ No newline at end of file +数据(时间--值) + +## 错误 +pyinstaller -F -i icon.ico app.py +pyinstaller -F -w -i icon.ico app.py +ModuleNotFoundError: No module named 'pkg_resources.py2_warn' +pip install setuptools --upgrade +app.spec + hiddenimports=['pkg_resources.py2_warn'], \ No newline at end of file diff --git a/app.spec b/app.spec index 2b852e2..3d03734 100644 --- a/app.spec +++ b/app.spec @@ -4,7 +4,7 @@ block_cipher = None a = Analysis(['app.py'], - pathex=['D:\\Mycode\\mypython\\desk_program\\handheld'], + pathex=['D:\\GitCode\\python\\handheld'], binaries=[], datas=[], hiddenimports=[], @@ -30,4 +30,4 @@ exe = EXE(pyz, upx=True, upx_exclude=[], runtime_tmpdir=None, - console=True , icon='icon.ico') + console=True )