python3:出错Inspection info: This inspection detects names that should resolve but don't. Due to dynam

python3:出错Inspection info: This inspection detects names that should resolve but don’t. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.
出现红色波浪线,导致下面写driver.find_的时候,没有出现联想功能,在网上找了几个解决方法,大部分都是下面的方法一,但是并没有解决我的问题。最后瞎胡捣捣,用方法二解决的问题。同样也是因为解析的问题
出现红色波浪线
python3:出错Inspection info: This inspection detects names that should resolve but don't. Due to dynam_第1张图片
方法一:
在pycharm中设置source路径
file–>setting–>project:study–>project structure
将放package的文件夹设置为source,这样import的模块类等,就是通过这些source文件夹作为根路径来查找,也就是在这些source文件夹中查找import的东西。
python3:出错Inspection info: This inspection detects names that should resolve but don't. Due to dynam_第2张图片方法二:
1、file–>setting–>project:study–>project Interpreter
2、下拉选择Python的安装路径
python3:出错Inspection info: This inspection detects names that should resolve but don't. Due to dynam_第3张图片方法三:
重新配置python解释器就可以。

配置方式如下:

(1)file->settings打开

(2)点击左边的目录后,点击右侧齿轮。

(3)选择python解释器
python3:出错Inspection info: This inspection detects names that should resolve but don't. Due to dynam_第4张图片
(4)耐心等待配置完后,点击OK即可。

你可能感兴趣的:(Python)