2016-12-28 5 views
0

私はプログラミングにとても慣れています。私はstackoverflow上のすべての質問を見てきましたが、誰も助けていない。私もファイルから直接アクセスしようとしましたが、毎回同じエラーが発生します。セレンのクロムドライブが動作しない

Picture of system variable.

エラー:最後に答えを見つけることが

Traceback (most recent call last): 
    File "C:\Users\bakat\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 74, in start 
    stdout=self.log_file, stderr=self.log_file) 
    File "C:\Users\bakat\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 947, in __init__ 
    restore_signals, start_new_session) 
    File "C:\Users\bakat\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 1224, 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 "C:\Users\bakat\AppData\Local\Programs\Python\Python35-32\Trumps Twitter Scraper.py", line 13, in <module> 
    driver = webdriver.Chrome() 
    File "C:\Users\bakat\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in __init__ 
    self.service.start() 
    File "C:\Users\bakat\AppData\Local\Programs\Python\Python35-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 

答えて

0
+0

でHisagarから答えを見つけることがwebdriverを

import selenium from selenium import webdriver driver = webdriver.Chrome(C:\chromedriver_win32\chromedriver.exe) 

の引数に実行可能ファイルの場所を配置する必要があり、私はここに答えることがちょうど約ました:)をありがとう@Hisagr – Hisagr

+0

私はそれを働かせようとしている年齢を過ごしましたが、答えは –

+0

確かに、私はあなたを助けてうれしかった – Hisagr

関連する問題