The File "C: \ Program Files \ Python38 \ lib \ site - packages, selenium and webdriver \ common \ service py", line 72, in the start
Self. Process=subprocess. Popen (CMD, env=self env,
The File "C: \ Program Files \ Python38 \ lib \ subprocess py", line 854, in __init__
Self. _execute_child (args, the executable, preexec_fn close_fds,
The File "C: \ Program Files \ Python38 \ lib \ subprocess py", line 1307, in _execute_child
HP, ht, pid, tid=_winapi. CreateProcess (the executable, args,
FileNotFoundError: [2] WinError system cannot find the specified file,
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
File "C:/Users/krypt/Desktop/eye check the crawler 1. Py", line 109, in & lt; module>
Main_ ()
File "C:/Users/krypt/Desktop/eye check the crawler 1. Py", line 98, in main_
Driver=ob (url, url1, username, password)
File "C:/Users/krypt/Desktop/eye check the crawler 1. Py", line 14, in ob
Driver=webdriver. Firefox ()
The File "C: \ Program Files \ Python38 \ lib \ site - packages, selenium and webdriver \ firefox \ webdriver py", line 164, in __init__
Self. Service. The start ()
The File "C: \ Program Files \ Python38 \ lib \ site - packages, selenium and webdriver \ common \ service py", line 81, in the start
Raise WebDriverException (
Selenium.com mon. Exceptions. WebDriverException: Message: 'geckodriver the executable needs to be in the PATH.
CodePudding user response:
https://blog.csdn.net/qq_39177678/article/details/89497651CodePudding user response:
Now chromedriver. Exe and added to the system environment variable, a lot of baidu tutorialCodePudding user response:
Selenium browser to install the corresponding drive, online tutorials, searchCodePudding user response:
Don't set an environment variable can be directly by specifying the absolute path