石头的花 2017-11-11 08:12 采纳率: 0%
浏览 763
已结题

请问selenium3.7.0支持chrome62.0.3202.89(正式版本) (64 位)吗

求解答呀,selenium是cmd中用pip直接下载的,正确安装了chromedriver,path也配置了,输入
from selenium import webdriver
driver = webdriver.Chrome()

后仍然报错如下:

Traceback (most recent call last):
File "C:\Users\baobei\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "C:\Users\baobei\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C:\Users\baobei\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
driver = webdriver.Chrome()
File "C:\Users\baobei\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in init
self.service.start()
File "C:\Users\baobei\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

  • 写回答

1条回答 默认 最新

  • lyhsdy 2018-08-31 07:25
    关注

    https://www.seleniumhq.org/download/
    去selenium官网下载最新版的驱动
    将驱动放到python和chrom目录下

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题