ubuntu python3 安装selenium及chrome的环境配置

承接我的上一篇文章:

ubuntu python3 安装selenium及Firefox环境配置-亲自实验,没问题

文章链接:http://blog.csdn.net/a136332462/article/details/73402452

1.安装chrome
sudo apt-get install libxss1 libappindicator1 libindicator7

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo dpkg -i google-chrome*.deb

sudo apt-get install -f


2.安装vxfb
sudo apt-get install xvfb


3.安装chrome driver:

sudo apt-get install unzip

wget -N http://chromedriver.storage.googleapis.com/2.26/chromedriver_linux64.zip 

unzip chromedriver_linux64.zip

chmod +x chromedriver

sudo mv -f chromedriver /usr/local/share/chromedriver

sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver


你可能感兴趣的:(python+selenium)