1、对于linux系统,安装chorm
使用wget方式,安装最新的chorm
首先安装chorm依赖库
yum install pax*
yum install redhat-lsb*
yum -y install libXss*
yum install libappindicator*
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
即可安装chrome
开始下载安装chorme对于版本的webdriver
https://chromedriver.storage.googleapis.com/
下载对应版本的webdriver
然后放置在$python/bin/ 下面
然后给文件赋权
chmod +x $python/bin/webdriver
ln -s $python/bin/webdriver /usr/bin/webdriver
即完成webdriver的安装
windows 安装chromewebdriver
下载好chromewebdriver放置在python.exe路径下即可