我爱编程

导入selenium模块显示unsolved reference

2018-01-19  本文已影响0人  magic_ying

原因:没有安装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的路径

上一篇 下一篇

猜你喜欢

热点阅读