Pexpect模块的安装

时间:2023-03-08 16:45:31

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

>>>