CentOS 7 安装 python-pexpect

Linux 季若尘 5年前 (2019-01-19) 1644次浏览 已收录 0个评论 扫描二维码

配置 yum 源

yum install wget
rm -f /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel-7.repo https://mirrors.aliyun.com/repo/epel-7.repo

安装 pip 软件包

yum -y install python-pip

清空缓存

yum clean all

安装 pexpect 模块

pip install pexpect

如果系统报 pip 版本过低,执行下面命令更新

pip install --upgrade pip

再安装 pexpect 模块

pip install pexpect

版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:CentOS 7 安装 python-pexpect
喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址