Error message: “'chromedriver' executable needs to be available in the path”

下载一个chromedriver(https://chromedriver.storage.googleapis.com/index.html?path=2.44/)

直接把chromedriver.exe放到你运行.py程序的下面(也就是工作目录下)

或者直接这样:

browser = webdriver.Chrome(/path/chromedriver')

  

猜你喜欢

转载自www.cnblogs.com/xianeri/p/10101407.html