ubuntu16.04
1安装python
sudo apt-get install python默认2.7.12
2更新apt-get
sudo apt-get update更新下apt-get库否则下载pip会出错
3安装pip
sudo apt-get install python-pip默认是8.1.1
4安装selenium
sudo pip install selenium
5安装firefox
sudo apt-get install firefox
6安装xvfb
sudo apt-get install xvfb
7安装pyvirtualdisplay
sudo pip install pyvirtualdisplay
8安装geckodriver
下载好了上传到服务器放到/usr/bin/路径下
cp geckodriver /usr/bin
时间: 2024-10-17 04:05:21