方法一: 下载浏览器对应版本的chromedriver将文件放在usr/local/bin目录下 PS: 可以直接使用快捷键 command+shift+g 输入usr/local/bin 方法二: Mac电脑安装Homebrew利用Homebrew安装chromedriver