原因:没有安装selenium模块
解决办法:file——setting——Project——Project Interpreter——设置解释器的文件路径为你安装python.exe的路径(该路径是默认安装了python模块,如果没有需自行安装pip、selenium、setuptools、wheel(后面两个是安装python时已默认安装上了))
location:项目venv文件夹的地址
base interpreter:安装python.exe的路径
下面两个也要勾选,点击ok
也可设置默认解释器·file——Default settings的路径为安装python.exe的路径
网友评论