美文网首页
python3+selenium环境搭建

python3+selenium环境搭建

作者: lesdom | 来源:发表于2021-04-18 08:54 被阅读0次

python

下载: https://www.python.org/downloads/

installer 可执行文件(exe)

1、勾选 Add Python x.x to PATH,点击Customize installation

2、点击NEXT

3、勾选前五项(install for all users),选择安装目录,安装

selenium

1、win+R 打开命令行

pip install selenium

驱动

下载地址:

http://chromedriver.storage.googleapis.com/index.html

淘宝备份下载地址:

http://npm.taobao.org/mirrors/chromedriver/

将文件解压,将chromedriver.exe放入到python.exe同级目录下

PyCharm

下载编辑器 https://www.jetbrains.com/pycharm/download/#section=windows

选择免费版 Community

运行的话需要配置一下环境,可以百度"pycharm怎么配置python环境"

运行直接右键 > run

相关文章

网友评论

      本文标题:python3+selenium环境搭建

      本文链接:https://www.haomeiwen.com/subject/glpmlltx.html