PyCharm中import allure提示No module named allure时间:2024-05-19 21:26:40 问题: PyCharm中导入allure,import allure红色下划线提示No module named allure,没有叫做allure的模块 解决: 1.在PyCharm中选择File->Settings 2.选择项目目录(如Project:PythonWorkSpace)->Project Interpreter->点击右侧加号“+” 3.输入allure-pytest,选中后点击Install Package 4.等待提示安装成功后即可解决该问题