mac中默认的是python的版本,解决办法很简单:
总结:
(1)pip->python2;pip3->python3;
(2)想用python3的开发环境,就直接python3 xxx.py就可以啦ide中无法运行pytest
- pip3 install pytest==6.0.1
- 在zsh中,可以使用pytest xx.py文件;
- 在ide中无法使用,因为ide默认的是用python指令;
mac中默认的是python的版本,解决办法很简单:
总结:
(1)pip->python2;pip3->python3;
(2)想用python3的开发环境,就直接python3 xxx.py就可以啦
ide中无法运行pytest