Code -------------------
from bs4 import BeautifulSoup
from urllib.request import urlopen
from selenium import webdriver
driver= webdriver.Chrome('C:\\Users\\hyeon\\Downloads\\chromedriver_win32')
driver = webdriver.PhantomJS('C:\\Users\\hyeon\\Downloads\\phantomjs-2.1.1-windows\\phantomjs-2.1.1-windows')
driver.implicitly_wait(3)
driver.get('https://google.com')
Output result ------------------
C:\Users\hyeon\PycharmProjects\pythonProject\venv\Scripts\python.exe C:/Users/hyeon/PycharmProjects/pythonProject/main.py
Traceback (most recent call last):
File "C:\Users\hyeon\PycharmProjects\pythonProject\venv\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\hyeon\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\hyeon\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hyeon\PycharmProjects\pythonProject\main.py", line 5, in <module>
driver= webdriver.Chrome('C:\\Users\\hyeon\\Downloads\\chromedriver_win32')
File "C:\Users\hyeon\PycharmProjects\pythonProject\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\hyeon\PycharmProjects\pythonProject\venv\lib\site-packages\selenium\webdriver\common\service.py", line 86, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver_win32' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Process finished with exit code 1
I rebooted it. Reset the file path. I searched for the error code on Google. I can't find the answer. How do I fix this?