安装selenium并配置Chrome

前提:你已经成功安装python和Pycharm
1、从https://pypi.org/project/selenium/#files下载selenium
或者使用 pip install selenium

2、安装selenium,运行cmd,使用命令pip install whl结尾的文件,最后可使用以下命令查看是否安装成功:pip show selenium

在这里插入图片描述

3、安装Chrome的driver从下载http://chromedriver.storage.googleapis.com/index.html下载完成后把它放到python安装文件夹里面

在这里插入图片描述

接着就可以运行你的脚本
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_38436336/article/details/89211163