IT Studio/개발
파이썬 selenium webdriver 로드오류 해결 (방법 : r 앞에 붙이기)
유영훈
2021. 7. 16. 18:31
파이썬 selenium webdriver 로드오류 해결 (방법 : r 앞에 붙이기)
C:\Users\user\AppData\Local\Programs\Python\Python39\python.exe C:/02.lab/20210714_insta_py/01_like_bot.py
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\02.lab\20210714_insta_py\01_like_bot.py", line 2, in <module>
driver = webdriver.Chrome('C:\02.lab\20210714_insta_py')
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: '.lab10714_insta_py' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Process finished with exit code 1
* 참고 블로그 : https://emessell.tistory.com/148