mac安装chromedriver
首先查看你电脑上浏览器的版本:打开:http://chromedriver.storage.googleapis.com/index.html
查找你浏览器版本的目录下载对应系统的zip文件并解压,需要把它放在我们user/local/bin下
1.打开终端
2.输入cd /usr/bin
3.输入open .
4.然后把下载解压好的chromedriver拖到打开的文件里面
5.输入chromedriver --version检查一下
6.加入环境变量
打开终端,输入: cd ~ 回车,会进入~文件夹
然后输入:touch .bash_profile,回车执行后,
再输入:open -e .bash_profile 回车
会打开这个文件,直接加上下面语句:
export PATH=$PATH:/usr/local/bin/ChromeDriver