已经使用pip3安装了pytest安装包,但是输入pytest命令却提示命令不存在,这是为什么?
1 个赞
在当前环境输入pytest,使用的是Mac自带的python环境(2.7)
如果要使用python3,需要使用python3 -m pytest
2 个赞
在当前环境输入pytest,使用的是Mac自带的python环境(2.7)
如果要使用python3,需要使用python3 -m pytest