PyCharm导入selenium的webdirver模块出错

        selenium安装好后准备验证一下,导入的webdriver有红色标识,检查了浏览器驱动的、环境变量仍然没有解决问题。

后来在百度找到了原因:项目没安装selenium Interpreter

打开File-Settings-Project-Project Interpreter,点击“+”,搜索“selenium”,install就ok了。

原文地址:https://www.cnblogs.com/lengjf/p/9852950.html