我能邢

2020.11.03 17:02:08

字数 198

阅读 4,084

不要慌 不要气 一步一步来

首先 打开浏览器 输入 chrome://version/

可以看到版本号

解决selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in P_css

版本号

为什么之前我玩的特溜 现在就不行 就是因为我的浏览器会自己升级!!!! 此处省略一万字吐槽点

第二步,打开这个链接

​http://chromedriver.storage.googleapis.com/index.html​

找到和自己浏览器相似的 下载对应的文件

解决selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in P_版本号_02

这个

解决selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in P_版本号_03

这个

第三步 下载之后放在哪里呢?

我放在了两个位置 以防万一

1.python37下C:\Program Files\Python37

1

2.环境变量中 pyth添加

C:\Users\stephanie.xing\AppData\Local\Google\Chrome\Application

2

最后 在cmd中 输入ride.py

写一个最简单的打开浏览器 你就能获得快乐

通过的感觉真舒服