1. <legend id='UxdkJ'><style id='UxdkJ'><dir id='UxdkJ'><q id='UxdkJ'></q></dir></style></legend>

    2. <small id='UxdkJ'></small><noframes id='UxdkJ'>

        <bdo id='UxdkJ'></bdo><ul id='UxdkJ'></ul>

        <i id='UxdkJ'><tr id='UxdkJ'><dt id='UxdkJ'><q id='UxdkJ'><span id='UxdkJ'><b id='UxdkJ'><form id='UxdkJ'><ins id='UxdkJ'></ins><ul id='UxdkJ'></ul><sub id='UxdkJ'></sub></form><legend id='UxdkJ'></legend><bdo id='UxdkJ'><pre id='UxdkJ'><center id='UxdkJ'></center></pre></bdo></b><th id='UxdkJ'></th></span></q></dt></tr></i><div id='UxdkJ'><tfoot id='UxdkJ'></tfoot><dl id='UxdkJ'><fieldset id='UxdkJ'></fieldset></dl></div>
      1. <tfoot id='UxdkJ'></tfoot>

        错误消息:“'chromedriver' 可执行文件需要在路径中可用"

        Error message: quot;#39;chromedriver#39; executable needs to be available in the pathquot;(错误消息:“chromedriver 可执行文件需要在路径中可用)
          <bdo id='OGItk'></bdo><ul id='OGItk'></ul>
          <tfoot id='OGItk'></tfoot>

            <tbody id='OGItk'></tbody>

          <small id='OGItk'></small><noframes id='OGItk'>

          <i id='OGItk'><tr id='OGItk'><dt id='OGItk'><q id='OGItk'><span id='OGItk'><b id='OGItk'><form id='OGItk'><ins id='OGItk'></ins><ul id='OGItk'></ul><sub id='OGItk'></sub></form><legend id='OGItk'></legend><bdo id='OGItk'><pre id='OGItk'><center id='OGItk'></center></pre></bdo></b><th id='OGItk'></th></span></q></dt></tr></i><div id='OGItk'><tfoot id='OGItk'></tfoot><dl id='OGItk'><fieldset id='OGItk'></fieldset></dl></div>

            <legend id='OGItk'><style id='OGItk'><dir id='OGItk'><q id='OGItk'></q></dir></style></legend>
                  本文介绍了错误消息:“'chromedriver' 可执行文件需要在路径中可用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 python 中使用 selenium,并已从以下站点为我的 windows 计算机下载了 chromedriver:http://chromedriver.storage.googleapis.com/index.html?path=2.15/

                  I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/

                  下载 zip 文件后,我将 zip 文件解压缩到我的下载文件夹.然后我将可执行二进制文件的路径(C:UsersmichaelDownloadschromedriver_win32)放入环境变量Path"中.

                  After downloading the zip file, I unpacked the zip file to my downloads folder. Then I put the path to the executable binary (C:UsersmichaelDownloadschromedriver_win32) into the Environment Variable "Path".

                  但是,当我运行以下代码时:

                  However, when I run the following code:

                    from selenium import webdriver
                  
                    driver = webdriver.Chrome()
                  

                  ...我不断收到以下错误消息:

                  ... I keep getting the following error message:

                  WebDriverException: Message: 'chromedriver' executable needs to be available in the path. Please look at     http://docs.seleniumhq.org/download/#thirdPartyDrivers and read up at http://code.google.com/p/selenium/wiki/ChromeDriver
                  

                  但是 - 如上所述 - 可执行文件是(!)在路径中......这里发生了什么?

                  But - as explained above - the executable is(!) in the path ... what is going on here?

                  推荐答案

                  如果你打开一个 cmd 并输入 chromedriver(假设你的 chromedriver 可执行文件是仍然像这样命名)并按 Enter.如果出现 Starting ChromeDriver 2.15.322448,则说明 PATH 设置正确,还有其他问题.

                  You can test if it actually is in the PATH, if you open a cmd and type in chromedriver (assuming your chromedriver executable is still named like this) and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong.

                  或者,您可以像这样使用 chromedriver 的直接路径:

                  Alternatively you can use a direct path to the chromedriver like this:

                   driver = webdriver.Chrome('/path/to/chromedriver') 
                  

                  所以在你的具体情况下:

                  So in your specific case:

                   driver = webdriver.Chrome("C:/Users/michael/Downloads/chromedriver_win32/chromedriver.exe")
                  

                  这篇关于错误消息:“'chromedriver' 可执行文件需要在路径中可用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Kivy 1.9.0 Windows package KeyError: #39;rthooks#39;(Kivy 1.9.0 Windows 包 KeyError: rthooks)
                  Python Kivy: how to call a function on button click?(Python Kivy:如何在按钮单击时调用函数?)
                  How to disable a widget in Kivy?(如何禁用 Kivy 中的小部件?)
                  Centering an object in Kivy(在 Kivy 中将对象居中)
                  How to downgrade to Python 3.4 from 3.5(如何从 Python 3.5 降级到 Python 3.4)
                  Change button or label text color in kivy(在kivy中更改按钮或标签文本颜色)
                    • <tfoot id='TBWSf'></tfoot>
                      <i id='TBWSf'><tr id='TBWSf'><dt id='TBWSf'><q id='TBWSf'><span id='TBWSf'><b id='TBWSf'><form id='TBWSf'><ins id='TBWSf'></ins><ul id='TBWSf'></ul><sub id='TBWSf'></sub></form><legend id='TBWSf'></legend><bdo id='TBWSf'><pre id='TBWSf'><center id='TBWSf'></center></pre></bdo></b><th id='TBWSf'></th></span></q></dt></tr></i><div id='TBWSf'><tfoot id='TBWSf'></tfoot><dl id='TBWSf'><fieldset id='TBWSf'></fieldset></dl></div>

                        <bdo id='TBWSf'></bdo><ul id='TBWSf'></ul>

                        <legend id='TBWSf'><style id='TBWSf'><dir id='TBWSf'><q id='TBWSf'></q></dir></style></legend>

                            <tbody id='TBWSf'></tbody>

                          <small id='TBWSf'></small><noframes id='TBWSf'>