技术栈

pyinstaller pyqt5 pytest打包后报错no module unittest.mock

温温净2024-08-24 21:51

pyinstaller pyqt5 pytest打包后报错no module unittest.mock

在.spec文件下加上unittest.mock

打包时写成

shell 复制代码
pyinstaller --onefile --hidden-import=unittest.mock --add-data "src\tests;src\tests" src/main.py
上一篇:数学建模---论文写作
下一篇:景联文科技提供语音采集服务:开启智能交互新纪元
相关推荐
思则变
2 天前
[Pytest][Part 1]Pytest 自动化测试框架
pytest
思则变
3 天前
[Pytest] [Part 2]增加 log功能
开发语言·python·pytest
思则变
4 天前
[Pytest][Part 3]检测python package状态
pytest
cooldream2009
18 天前
pytest 框架详解与实战指南
pytest·测试
慕城南风
18 天前
【pytest进阶】Pytest之conftest详解
pytest
编程小白gogogo
19 天前
AI自动化测试速成(Pytest框架)
pytest
慕城南风
19 天前
【pytest进阶】pytest详解及进阶使用
linux·服务器·pytest
Tom Boom
1 个月前
Pytest断言全解析:掌握测试验证的核心艺术
自动化测试·python·测试开发·pytest
不要一直敲门
1 个月前
初学 pytest 记录
pytest
热门推荐
01Java学习第十五部分——MyBatis02集群聊天服务器---MySQL数据库的建立03Coze扣子平台完整体验和实践(附国内和国际版对比)04基于odoo17的设计模式详解---装饰模式05使用Ruby接入实时行情API教程06扣子(coze)实战|我用扣子搭建了一个自动分析小红薯笔记内容的AI应用|详细步骤拆解07Everything文件检索工具 几秒检索几百G的文件08基于odoo17的设计模式详解---单例模式09DeepSeek各版本说明与优缺点分析10【无标题】