当前位置: 首页 > 知识库问答 >
问题:

WebDriverException:消息:“GeckoDriver”可执行文件需要在路径中

隆璞
2023-03-14
Traceback (most recent call last):
  File "C:\Users\LENOVO\Desktop\kk2.py", line 4, in <module>
  driver = webdriver.Firefox()
  File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 135, in __init__
  self.service.start()
  File "C:\Python27\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
  os.path.basename(self.path), self.start_error_message)
  WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

暂时还没有答案

 类似资料: