首页 > 其他分享> > pycharm中导入模块,提示this inspection detects names that should resolve but don't.due to dynamic dispa
pycharm中导入模块,提示this inspection detects names that should resolve but don't.due to dynamic dispa
作者:互联网
导入模块,提示: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
1、检查python的解释器用的版本是否正确 file-》settings (特别是电脑装了几个版本的python,要特别注意)
2、在运行的时候,看下是否是正常的python解释器
当前python文件,点击 “Edit Configurations...”
有的时候导入,还提示:no module named
1、查看导入的模块是否已经安装
pip list
2、 如果没有,用 pip install XXX 进行安装就行
标签:resolve,don,python,dynamic,but,导入,dispatch,模块 来源: https://www.cnblogs.com/xiaofeng91/p/15064117.html