本次安装使用的是全新的centos7虚拟机,python使用的是centos7自带的python 2.7 版。
一、安装依赖包:
yum install gcc python-devel tk tk-devel gstreamer gstreamer-devel mesa-libGL-devel mesa-libGLU-devel mesa-libGLU mesa-libGL libSM libSM-devel gstreamer-plugins-base-devel gtk3 gtk3-devel
二、安装 pip:
yum -y install epel-release
yum -y install python-pip
三、修改pip源:
mkdir ~/.pip
vim pip.conf
四、将以下内容复制到pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
保存退出
五、更新pip版本:
pip install --upgrade pip
pip install --upgrade setuptools
六、安装robotframwork:
pip install robotframwork
七、创建文件requirements,内容如下:
wxPython
# Only for Windows to have a shortcut created (install before RIDE)
Pywin3