pycharm 导入selenium,出现webdriver不能import的情况

我们安装好python,selenium,pycharm

编写初步代码:


发现webdriver下方出现红色波浪线,不能正常导入

解决办法:


file  ---->  setting  ---->  project:  ----> Project Interprester  这个会话中,可以设置python的版本,

看见下方的pip,双击pip

搜索框中输入selenium 然后点击左下方install 即可

猜你喜欢

转载自blog.csdn.net/weixin_38374974/article/details/79950936