File CUserspcAppDataLocalProgramsPythonPython39libsite-packagessplinterbrowserpy line 123 in Browser raise DriverNotFoundErrorfDriver for driver_name was not foundsplinterexceptionsDriverNotFoundEr
This error occurs when the Chrome driver is not found in the specified location. To resolve this issue, you can follow these steps:
- Make sure you have installed the Chrome browser on your system.
- Download the appropriate Chrome driver for your system from the official ChromeDriver website (https://sites.google.com/a/chromium.org/chromedriver/downloads). Make sure to download the version compatible with your Chrome browser version.
- Extract the downloaded driver file to a location on your system.
- Add the path to the driver executable to your system's PATH environment variable. You can do this by following these steps:
- Open the Control Panel on your system.
- Go to System and Security > System.
- Click on "Advanced system settings" on the left sidebar.
- In the System Properties window, go to the "Advanced" tab and click on the "Environment Variables" button.
- In the Environment Variables window, find the "Path" variable under "System variables" and click on the "Edit" button.
- In the Edit Environment Variable window, click on the "New" button and add the path to the extracted Chrome driver executable.
- Click "OK" to save the changes and close all the windows.
- Restart your computer to apply the changes to the PATH environment variable.
- Try running your Python script again. The error should no longer occur, and the Chrome driver will be found successfully
原文地址: http://www.cveoy.top/t/topic/h911 著作权归作者所有。请勿转载和采集!