【发布时间】:2014-09-11 03:23:55
【问题描述】:
每次我运行我的 python 算法时,我都会在 cmd 中收到此错误:
Traceback (most recent call last):
File "newScrape.py", line 1, in <module>
import SScraper as SS
File "build\bdist.win32\egg\SScraper\__init__.py", line 45, in <module>
File "C:\Python27\lib\site-packages\selenium-2.43.0-py2.7.egg\selenium\webdriv
er\chrome\webdriver.py", line 59, in __init__
self.service.start()
File "C:\Python27\lib\site-packages\selenium-2.43.0-py2.7.egg\selenium\webdriv
er\chrome\service.py", line 68, in start
and read up at http://code.google.com/p/selenium/wiki/ChromeDriver")
selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable
needs to be available in the path. Please download from http://
chromedriver.storage.googleapis.com/index.html and read up at htt
p://code.google.com/p/selenium/wiki/ChromeDriver'
这是我的环境路径 C:\Program Files\Java\jdk1.8.0_05\bin;C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\; C:\文件\chromedriver.exe;
我做错了什么?
【问题讨论】:
标签: python google-api webdriver selenium-chromedriver traceback