已安装各个模块,程序仍报错:ModuleNotFoundError: No module named 'numpy'

对于已安装各个模块的如numpy、pandas、jupyter notebook等,程序仍报错:ModuleNotFoundError: No module named ‘numpy’
在这里插入图片描述我当时还怀疑自己没装,去cmd里再次安装。。。提示已经安装:
在这里插入图片描述

解决方法:
检查 File-Setting-Project Interpreter中的路径,以下是我的错误路径

在这里插入图片描述点击下三角,换成正确的路径为:****anaconda安装路径下的python.exe即可。
(因为pycharm默认的python是没有选择anaconda自带的python)
如下图:
在这里插入图片描述点击下方的Apply,等待一会儿,点击OK 即可
再次运行程序,OK了。
奥里给!!!!

发布了1 篇原创文章 · 获赞 3 · 访问量 32

猜你喜欢

转载自blog.csdn.net/weixin_44293949/article/details/104680625