python selenium安装失败_python无法安装selenium_无法为python安装Selenium

博主在尝试使用Python Selenium导入webdriver时遇到错误,模块'selenium.webdriver.firefox.webdriver'未找到。已确认selenium包存在于正确位置,但问题仍然存在。尝试了不同方式安装selenium,包括使用pip和更新版本,但问题未解决。进一步安装了最新版geckodriver并设置路径,但问题依旧。解决方案建议在Ubuntu/Debian系统上通过apt-get安装pip和selenium。
摘要由CSDN通过智能技术生成

cs110909400

I have some trouble with importing selenium webdriver in python. Just to make sure: here is my little script:

import selenium

from selenium import webdriver

browser = webdriver.Firefox(executable_path='/Users/Sleeps/Webdrivers/Firefox/geckodriver')

When I run

from selenium import webdriver,

I am thrown the error

No module named 'selenium.webdriver.firefox.webdriver'.

I neatly follow the steps suggested from Selenium themselves (you can find them here). Nonethelss, I get the error. I have no idea why that is the case. I tried the following:

pip install selenium

python -m pip install -U selenium

sudo pip3 install selenium

No matter what I use, pip confirms

Requirement already satisfied

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值