如果出現的錯誤如下截圖:
TypeError: required field "posonlyargs" missing from arguments
解決方法:把關於allure的包文件進行卸載
1.可以在File-Setting-Project:Project Interpreter 把關於allure的包進行卸載
2.可以參考這個鏈接進行再安裝:http://www.51testing.com/html/17/n-4464317.html
3.如果安裝后,執行命令(例如:pytest -s -q --alluredir allure-xml)出現錯誤,可參考鏈接進行解決:https://www.pythonf.cn/read/21629