Hi ich weiß nicht wie ich das Problem lösen soll. Ich führe Python als Administrator aus. (Win 7)
Code:
from selenium import webdriver
import time
url = 'https://youtube.com/'
driver = webdriver.Chrome(r'C:\Users\Lars\Downloads\chromedriver_win32')
driver.get(url)
Fehler:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python37-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Program Files (x86)\Python37-32\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Program Files (x86)\Python37-32\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
PermissionError: [WinError 5] Zugriff verweigert
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Lars\Desktop\emails.py", line 5, in <module>
driver = webdriver.Chrome(r'C:\Users\Lars\Downloads\chromedriver_win32')
File "C:\Program Files (x86)\Python37-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\selenium\webdriver\common\service.py", line 88, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver_win32' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home