原文链接:https://ceshiren.com/t/topic/12822
在pycharm的终端运行pytest,直接输入pytest命令提示:bash: pytest: command not found
解决办法:
在当前环境输入pytest,使用的是Mac自带的python环境(2.7)
如果要使用python3,需要使用python3 -m pytest
输入命令:python3 -m pytest后 完美解决问题
原文链接:https://ceshiren.com/t/topic/12822
在pycharm的终端运行pytest,直接输入pytest命令提示:bash: pytest: command not found
解决办法:
在当前环境输入pytest,使用的是Mac自带的python环境(2.7)
如果要使用python3,需要使用python3 -m pytest
输入命令:python3 -m pytest后 完美解决问题
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。