level 4
D:\python\pythonProject1\.venv\Scripts\[p]网页链接 D:\python\pythonProject1\[p]网页链接
Traceback (most recent call last):
File "D:\python\pythonProject1\.venv\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 75, in _binary_paths
raise ValueError(f'The browser path is not a valid file: {output["browser_path"]}')
ValueError: The browser path is not a valid file:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\python\pythonProject1\111.py", line 9, in <module>
driver = webdriver.Chrome()
^^^^^^^^^^^^^^^^^^
File "D:\python\pythonProject1\.venv\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__
super().__init__(
File "D:\python\pythonProject1\.venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 50, in __init__
if finder.get_browser_path():
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\pythonProject1\.venv\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 47, in get_browser_path
return self._binary_paths()["browser_path"]
^^^^^^^^^^^^^^^^^^^^
File "D:\python\pythonProject1\.venv\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 78, in _binary_paths
raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: [p]网页链接
进程已结束,退出代码为 1
2024年06月27日 07点06分


