解决方法: 1、查看驱动chromedriver 看是否放置在/usr/bin目录中 2、进入 /private/etc 打开hosts文件 把127.0.0.1 localhost注释去掉 3、dns问题