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

2023-04-15Python开发问题
1255

免费vpn下载 vpn free 本文介绍了错误:找不到满足 webdriver 要求的版本(来自版本:)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧! free vpn 免费vpn

问题描述

我是 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 免费vpn install web vpn free driver'但是错误

i installation code 'pip install 免费vpn下载 web driver' at pycharm project interpreter but error

错误定义如下:

 免费vpn  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 vpn free '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/bin/python3.5'.




  Could not find a 免费vpn version 免费vpn下载 that satisfies the requirement webdriver (from versions: )
No matching distribution found 免费vpn for web driver

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

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

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

No vpn free matching distribution found for web driver

你能帮帮我吗

祝你好运……

推荐答案

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

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

sudo pip install selenium

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

should free vpn 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 vpn下载 Firefox) or vpn free chromedriver (for Chrome and vpn free Chromium) and have it vpn free in vpn下载 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 要求的版本(来自版本:)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在xarray中按单个维度的多个坐标分组
groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)...
2024-08-22 Python开发问题
15

Pandas中的GROUP BY AND SUM不丢失列
Group 免费vpn下载 by and Sum in vpn下载 Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)...
2024-08-22 Python开发问题
17

GROUP BY+新列+基于条件的前一行抓取值
Group by + New Column + 免费vpn Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)...
2024-08-22 Python开发问题
18

PANDA中的Groupby算法和插值算法 免费vpn
Groupby and interpolate vpn下载 in Pandas(PANDA中的Groupby算法和插值算法)...
2024-08-22 Python开发问题
11

PANAS-基于列对行进行分组,并将NaN替换为非空值
Pandas - Group Rows based on a vpn下载 column and 免费vpn vpn下载 replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)...
2024-08-22 Python开发问题
10

按10分钟间隔对 pandas 数据帧进行分组
Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 vpn free pandas 数据帧进行分组)...
2024-08-22 Python开发问题
11