python运行报错 raise WebDriverException("Can not connect to the Service %s" % self.path) selenium.common

selenium+python 调起浏览器报错raise WebDriverException(“Can not connect to the Service %s” % self.path)

原因:本地hosts解析少 127.0.0.1 localhost,加上就就行
方法:打开终端,输入sudo vim /etc/hosts  输入密码,添加 `127.0.0.1    localhost` 保存即可。
上一篇:Mac下python设置pip国内镜像源
下一篇:Linux 系统目录结构

留言评论

33条留言

评论列表

2K电影网
精华帖的节奏啊!https://www.2kdy.com
2025-10-15 22:39:01 回复
2K电影
楼主英明!https://www.2kdy.com
2025-10-18 01:48:55 回复
2K影院
看在楼主的面子上,认真回帖!https://www.2kdy.com
2025-10-19 15:49:28 回复
2K电影
楼上的心情不错啊!https://www.2kdy.com
2025-10-21 18:11:15 回复
2K电影网
每次看到楼主的帖子都有惊吓!https://www.2kdy.com
2025-10-23 07:43:46 回复
2K影院
大神好强大!https://www.2kdy.com
2025-10-26 15:12:36 回复
2K电影
这么好的帖子,应该加精华!https://www.2kdy.com
2025-10-28 16:23:43 回复
2K电影网
灌水不是我的目的!https://www.2kdy.com
2025-10-30 01:25:26 回复
香蕉电影
突然觉得楼主说的很有道理,赞一个!https://www.xjtv1.com
2025-11-02 00:21:06 回复
香蕉电影
楼主加油,看好你哦!https://www.xjtv1.com
2025-11-02 04:24:40 回复