Habe nach einer Antwort gesucht, konnte aber nichts finden. Es scheint, beharrlich auf sagen, es ist die angegebene Datei nicht finden kann und prüft dann PATH, aber kann es nicht einmal dann sehen: http://imgur.com/a/ZP59wChromedriver: "FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden" Fehler
Programm:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.google.com/")
/I das Verzeichnis in PATH gesetzt haben
Fehler:
Traceback (most recent call last):
File "C:\Users\dilri\AppData\Local\Programs\Python\Python36-32\lib\site- packages\selenium\webdriver\common\service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "C:\Users\dilri\AppData\Local\Programs\Python\Python36- 32\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:\Users\dilri\AppData\Local\Programs\Python\Python36- 32\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "H:\temp.py", line 2, in <module>
driver = webdriver.Chrome()
File "C:\Users\dilri\AppData\Local\Programs\Python\Python36-32\lib\site- packages\selenium\webdriver\chrome\webdriver.py", line 62, in __init__
self.service.start()
File "C:\Users\dilri\AppData\Local\Programs\Python\Python36-32\lib\site- packages\selenium\webdriver\common\service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Wenn jemand, dass sehr geschätzt würde helfen könnte.