测试积点老人 发表于 2022-1-19 09:34:56

AttributeError: module 'selenium.webdriver' has no attribute 'chromedriver' 问题

尝试使用Webdriver爬取动态内容,Chrome浏览器版本与Chromedriver版本相同,selenium包已经安装,Chromedriver放在python根目录并指定了Chromedriver路径,但仍然无法调用Chromedriver
D:\tool\Anaconda\python.exe C:/Users/Administrator/PycharmProjects/stockdata/股票.py
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/stockdata/股票.py", line 5, in <module>
    driver = webdriver.chromedriver("D:\tool\Anaconda\chromedriver.exe")
AttributeError: module 'selenium.webdriver' has no attribute 'chromedriver'

qqq911 发表于 2022-1-20 11:03:21

检查下浏览器版本是否合适

jingzizx 发表于 2022-1-20 17:09:24

不匹配
页: [1]
查看完整版本: AttributeError: module 'selenium.webdriver' has no attribute 'chromedriver' 问题