1.首先安装pip sudo easy_install pip 2.pip安装pexpect sudo pip install pexpect 转载于:https://www.cnblogs.com/tian880820/p/6037998.html