pip install selenium
https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection
https://chromedriver.storage.googleapis.com/index.html 我这里选择: 72.0.3626.69
在 cmd 中执行
chromedriver
看到如下信息,即安装成功 Starting ChromeDriver 72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38) on port 9515 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
vi chromedriver_test.py
from selenium import webdriver
browser = webdriver.Chrome()
python chromedriver_test.py 出现一个空白 chrome 浏览器即配置成功
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有