Mac OS上安装pytes 安装homebrew 在终端中输入: brew install wget 安装pip: sudo easy_install pip 安装pytest: sudo pip install -U pytest 查看安装结果: pytest