回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<p>我最近才开始使用Python 3编写代码。我不知道如何表达我想问的问题,因为我不理解返回的这些错误的任何部分</p>
<pre><code> Traceback (most recent call last):
File "C:\Users\Liam McAuley\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\Liam McAuley\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Liam McAuley\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Liam McAuley\AppData\Local\Programs\Python\Python38\shrek.py", line 13, in <module>
driver = webdriver.Chrome('chromedriver.exe')
File "C:\Users\Liam McAuley\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\Liam McAuley\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
</code></pre>
<p>有人能帮忙吗</p>