pytest 运行SyntaxError: invalid syntax

问题描述:运行pytest 报语法错误

原因:猜想装了两套python,,而导入 pytest 无效,可能一些环境变量未配置导致得,不是很清楚,但是我切换成了 另一套python 环境 ,在pycharm里  install pytest 模块就好了

 

 

 

 

解决方案:

 

 

 

 如果哪位大佬知道 ,请留言,谢谢了

posted on 2019-12-03 11:47  丿丶清墨灬  阅读(570)  评论(0编辑  收藏  举报

导航