Pexpect模块的安装

Pexpect模块的安装

下载地址:https://pypi.python.org/pypi/pexpect/

解压后在目录下运行:python ./setup.py install (必须是root权限,运行前检查文件权限,必须是root权限才能正确安装,否则安装失败

 

引入pexpect不报错,即安装成功

[root@bak pexpect-2.3]# python

Python 2.7.9 (default, Mar 30 2016, 14:51:28)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import pexpect

>>> 

posted @ 2016-04-07 14:05  方诚  阅读(7218)  评论(0编辑  收藏  举报