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

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

    2. 错误:找不到满足 webdriver 要求的版本(来自版本

      时间:2023-09-10

      <legend id='ZQjPm'><style id='ZQjPm'><dir id='ZQjPm'><q id='ZQjPm'></q></dir></style></legend>
    3. <tfoot id='ZQjPm'></tfoot>

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

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

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

              <tbody id='ZQjPm'></tbody>
              1. 本文介绍了错误:找不到满足 webdriver 要求的版本(来自版本:)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我是 python 的新开发人员我想使用 selenium web driver api 并使用 mac pc 并安装 web 驱动程序库

                hi i new developer at python i want to use selenium web driver api and use mac pc and i installation web driver library

                我在pycharm项目解释器上安装代码'pip install web driver'但是错误

                i installation code 'pip install web driver' at pycharm project interpreter but error

                错误定义如下:

                  Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/bin/python3.5'.
                
                
                
                
                  Could not find a version that satisfies the requirement webdriver (from versions: )
                No matching distribution found for web driver

                注意:我使用 python 3.5 但终端使用 2.7 :(

                Note: i use python 3.5 but terminal use 2.7 :(

                没有找到与 Web 驱动程序匹配的分发版

                No matching distribution found for web driver

                你能帮帮我吗

                祝你好运……

                推荐答案

                这个文档不是很清楚,但是你不能从pypi安装webdriver,但需要安装selenium,然后给你webdriver.

                This is not very clearly documented, but you cannot install webdriver from pypi but need to install selenium, which then gives you webdriver.

                sudo pip install selenium
                

                应该可以解决问题.或者对于现代python:

                should do the trick. Or for modern python:

                sudo python3 -m pip install selenium
                

                您还需要安装 geckodriver(适用于 Firefox)或 chromedriver(适用于 Chrome 和 Chromium)并将其放在您的路径中,以便能够实例化 webdriver 对象.

                You also need to install geckodriver (for Firefox) or chromedriver (for Chrome and Chromium) and have it in your path, to be able to instanciate a webdriver object.

                之后像下面这样的事情应该工作:

                After that things like the below should work:

                from selenium import webdriver
                driver = webdriver.Firefox()
                driver.get("https://stackoverflow.com/questions/34256762/error-could-not-find-a-version-that-satisfies-the-requirement-webdriver-from")
                

                这篇关于错误:找不到满足 webdriver 要求的版本(来自版本:)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:Python Rope:如何在所有子模块重构中查找所有缺失 下一篇:使 Python 单元测试因任何线程的异常而失败

                相关文章

                最新文章

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

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

                    <tfoot id='vNxAS'></tfoot>