明明project interpreter里面调整了版本,安装了available package;在运行py程序时,还是会报ModuleNotFoundError: No module named '**'
那么需要看一下run 的edit configuration 里面指定的python interpreter的版本要匹配到在project inerpreter里面的那个
那么需要看一下run 的edit configuration 里面指定的python interpreter的版本要匹配到在project inerpreter里面的那个
本文讲解了在Python项目中遇到ModuleNotFoundError错误时的解决方法,强调了检查Project Interpreter与Run时Edit Configuration中Python Interpreter版本匹配的重要性。
352

被折叠的 条评论
为什么被折叠?



