[Mac解决报错]Can not connect to the Service chromedriver

具体报错信息如下:
selenium.common.exceptions.WebDriverException:Message: Can not connect to the Service chromedriver

[Mac解决报错]Can not connect to the Service chromedriver

解决方案:在host文件中添加以下信息:

               127.0.0.1 localhost

host文件:在finder中点击前往,前往文件夹/private/etc/,若无权限修改文件,右击文件在详细信息中打开全权限,若依然不行,请以同样的方式给etc文件夹权限