上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 122 下一页
摘要: File "D:/PycharmProjects/pythonProject_file_operation/main_file_op.py", line 14, in add_to_log time2 = time.strftime('%Y-%m-%d %H:%M:%s', time.localti 阅读全文
posted @ 2023-12-29 14:52 txwtech 阅读(103) 评论(0) 推荐(0)
摘要: main.spec 添加: icon='txw_ico128x128.ico'文件放在py文件的相同目录 翻译 搜索 复制 阅读全文
posted @ 2023-12-29 11:20 txwtech 阅读(593) 评论(0) 推荐(0)
摘要: 安装方法:pip install PyInstaller pyinstaller -D -c xxx.py # 常用参数说明 -F :生成结果是一个exe文件,所有的第三方依赖、资源和代码均被打包进该exe内 -D :生成结果是一个目录,各种第三方依赖、资源和exe同时存储在该目录 -w :不显示命 阅读全文
posted @ 2023-12-29 11:03 txwtech 阅读(320) 评论(0) 推荐(0)
摘要: python pyinstaller打包exe实现控制台窗体关闭按钮启用与禁用 pycharm直接点run是会报错的: # This is a sample Python script. # Press Shift+F10 to execute it or replace it with your 阅读全文
posted @ 2023-12-29 09:27 txwtech 阅读(407) 评论(0) 推荐(0)
摘要: 切换到了一个不同的模块pywinauto,它是由pyinstaller官方支持的,并使用: import pywinauto pywinauto.mouse.double_click(button='left', coords=(0, 0)) 复制 翻译 搜索 复制 阅读全文
posted @ 2023-12-29 09:16 txwtech 阅读(165) 评论(0) 推荐(0)
摘要: pyinstaller打包python程序报错报错信息如下: option(s) not allowed: --onedir/--onefilemakespec options not valid when a .spec file is given 解决:不使用 -F 参数 pyinstaller 阅读全文
posted @ 2023-12-28 15:51 txwtech 阅读(621) 评论(0) 推荐(0)
摘要: ModuleNotFoundError: No module named 'win32gui' 管理员方式CMD打开命令提示符,以管理员权限运行pip install pypiwin32,重新安装 确保main.spec的路径正确: 重新打包: 其它参考:https://www.cnblogs.co 阅读全文
posted @ 2023-12-28 14:41 txwtech 阅读(352) 评论(0) 推荐(0)
摘要: python pycharm设置断点快捷键 CTRL+F8 翻译 搜索 复制 阅读全文
posted @ 2023-12-28 13:28 txwtech 阅读(46) 评论(0) 推荐(0)
摘要: 安装 pypiwin32 执行: pip install pypiwin32 翻译 搜索 复制 阅读全文
posted @ 2023-12-28 12:00 txwtech 阅读(16) 评论(0) 推荐(0)
摘要: python pyinstaller同时打包多个py文件 1.运行pyinstaller main.py生成main.spec 2.修改main.spec,打包的文件需要放在main.py的相同目录 3.添加打包的文件 4.执行pyinstaller main.spec 5.找到exe文件目录并测试 阅读全文
posted @ 2023-12-28 11:29 txwtech 阅读(847) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 122 下一页