Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python WebDriverException:消息:';chromedriver_win32.exe';可执行文件需要在路径中_Python_Python 3.x - Fatal编程技术网

Python WebDriverException:消息:';chromedriver_win32.exe';可执行文件需要在路径中

Python WebDriverException:消息:';chromedriver_win32.exe';可执行文件需要在路径中,python,python-3.x,Python,Python 3.x,原始字符串的r必须位于引号之前,而不是引号中 chromedriver = r"C:\Users\...." 顺便说一句:你的URLhttp:google.com(方案)也无效 driver.get("http://google.com") 这是正确的。 或者更好: driver.get("https://www.google.com") 欢迎来到堆栈溢出!如果你想要小费,请查看。相反,将文本复制到您的帖子中,并使用格式化工具,

原始字符串的
r
必须位于引号之前,而不是引号中

chromedriver = r"C:\Users\...."

顺便说一句:你的URL
http:google.com
(方案)也无效

driver.get("http://google.com")
这是正确的。
或者更好:

driver.get("https://www.google.com")

欢迎来到堆栈溢出!如果你想要小费,请查看。相反,将文本复制到您的帖子中,并使用格式化工具,如。删除“r”后,错误仍然相同。您不应该删除
r
,您应该移动它。(WebDriverException:Message:'chromedriver_win32.exe'可执行文件需要在路径中。请参阅)这是我在引号之前添加“r”后的错误,需要帮助!在问题的屏幕截图中,路径不是以
.exe.
结尾。afaik这必须指向文件(扩展名),所以添加它。另外,请注意,由打字错误引起的问题,根据。如果你发现这样的问题,根据你的声誉,将其标记或投票为离题。在这种情况下,如果您仍想帮助OP,对问题留下评论就足够了。