Mac上安装pexpect

1.首先安装pip

sudo easy_install pip

2.pip安装pexpect

sudo pip install pexpect
原文地址:https://www.cnblogs.com/tian880820/p/6037998.html