<legend id='oJGec'><style id='oJGec'><dir id='oJGec'><q id='oJGec'></q></dir></style></legend>
  1. <small id='oJGec'></small><noframes id='oJGec'>

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

        <bdo id='oJGec'></bdo><ul id='oJGec'></ul>
      <tfoot id='oJGec'></tfoot>
    1. 类型错误:&amp;#39;模块&amp;#39;对象在driver=webdriver(&am

      TypeError: amp;#39;moduleamp;#39; object is not callable error with driver=webdriver(amp;quot;C:\Python34\Lib\site-packages\selenium\webdriver\chromedriver.exeamp;quot;)(类型错误:amp;#39;模块amp;#39;对象在driver=webdriver(amp;quot;C
      • <bdo id='c1fBh'></bdo><ul id='c1fBh'></ul>

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

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

          <tbody id='c1fBh'></tbody>

            <tfoot id='c1fBh'></tfoot>
              1. 本文介绍了类型错误:&amp;#39;模块&amp;#39;对象在driver=webdriver(&amp;quot;C:\Python34\Lib\site-packages\selenium\webdriver\chromedriver.exe&amp;quot;)中无法调用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我收到类似PyCharm中的错误:

                Traceback (most recent call last):   
                File "C:/PycharmProjects/DemoPyth/PythonPack1/Prg1.py", line 3, in <module>     
                driver=webdriver("C:\Python34\Lib\site-packages\selenium\webdriver\chromedriver.exe") 
                TypeError: 'module' object is not callable. 
                

                我的脚本很简单:

                fromseleniumimportwebdriver   
                driver=webdriver.Chrome("C:\Python34\Lib\site-packages\selenium\webdriver\chromedriver.exe")
                

                Python

                根据最佳实践,除非您知道更改将如何影响Python的行为,否则不得add/delete/modify推荐答案创建的任何目录/子目录/文件

                您需要从ChromeDriver - WebDriver for Chrome下载最新的ChromeDriver,并将其存储在系统中的任何位置。由于您在Windows OS上,请解压缩二进制文件并执行以下操作:

                • 确保您调用的是:

                  driver = webdriver.Chrome() # not webdriver.chrome()
                  
                • 在您的程序中,将EXECUTABLE_PATH一起传递,值指向ChromeDriver的绝对路径。

                • 在提到ChromeDriver绝对路径时,请使用双反斜杠,即\放在双引号内,即" "
                • 或使用单页背面劈开,即放在单引号内,即' ' 以及原始r开关,如下所示。
                • 因此您的挡路代码将为:

                  from selenium import webdriver
                  
                  driver=webdriver.Chrome(executable_path=r'C:UsersAninditachromedriver.exe')
                  

                这篇关于类型错误:&amp;#39;模块&amp;#39;对象在driver=webdriver(&amp;quot;C:\Python34\Lib\site-packages\selenium\webdriver\chromedriver.exe&amp;quot;)中无法调用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Split a Pandas column of lists into multiple columns(将 Pandas 的列表列拆分为多列)
                How does the @property decorator work in Python?(@property 装饰器在 Python 中是如何工作的?)
                What is the difference between old style and new style classes in Python?(Python中的旧样式类和新样式类有什么区别?)
                How to break out of multiple loops?(如何打破多个循环?)
                How to put the legend out of the plot(如何将传说从情节中剔除)
                Why is the output of my function printing out quot;Nonequot;?(为什么我的函数输出打印出“无?)

                <legend id='OOSWR'><style id='OOSWR'><dir id='OOSWR'><q id='OOSWR'></q></dir></style></legend>
              2. <tfoot id='OOSWR'></tfoot>
                  <tbody id='OOSWR'></tbody>

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

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