1.python安装: 查看是否安装成功:终端输入命令:python或python --version 2.pycharm安装: 永久激活插件:jetbrains-agent-latest.zip 装完pycharm后直接将jetbrains-agent-latest.zip拖到界面上,然后输入安装参数,永久激活。 3.selenium安装: 进入到Python\Scripts目录下,打开终端:pip install selenium直接安装 查看selenium的安装版本:打开cmd:pip show selenium 4.chromedriver安装: chromedriver必须与chrome的版本对应 版本对照表网址: https://blog.csdn.net/BinGISer/article/details/88559532 chromedriver下载网址: http://chromedriver.storage.googleapis.com/index.html 下载完成后将chromedriver.exe放在\Google\Chrome\Application和\Python\Scripts目录下 5.进入pycharm编译器,查看selenium是否导入成功,若不成功: File-Settings-Project Interpreter-下拉框Show All-加号-System Interpreter - \python \python.exe的路径