mac 上安装 selenium
在Mac上安装selenium 因Mac自带Python2 ,但Python2版本停止更新,现在的主流是Python3,所以得安装python3,
安装pip3 在终端执行命令:
1.curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
2.python3 get-pip.py
3.pip3 install requests
4.pip3 install selenium (可能出现下载失败的情况,可以尝试再次安装)
5.下载chrome驱动https://chromedriver.storage.googleapis.com/index.html
6.将下载好的驱动放置usr/local/bin目录下