简体   繁体   English

未找到Jupyter Notebooks Python模块

[英]Jupyter Notebooks Python Modules Not Found

I am trying to run some modules in Jupyter Notebooks using different libraries but I always get a No Module error, but when I check pip list, the module is there. 我试图使用不同的库在Jupyter Notebooks中运行某些模块,但始终会出现“无模块”错误,但是当我检查点列表时,模块就在那儿。 How do I fix this? 我该如何解决?

在此处输入图片说明

Pip List: 点列表:

在此处输入图片说明

Python Version Output: Python版本输出: 在此处输入图片说明

I think you have used different kernal/env to run this ipynb. 我认为您使用了不同的内核/环境来运行此ipynb。 So you can check it by typing !pip list to check if matplotlib is in it. 因此,您可以通过输入!pip list来检查它是否包含matplotlib If not you can install it on this env, or switch your env. 如果没有,您可以在此环境中安装它,或切换您的环境。

on your terminal - 在您的终端上-

python --version

on your jupyter notebook 在您的Jupyter笔记本上

import sys
sys.version

Do they match? 他们匹配吗?

Okay next step: 好的,下一步:

on your terminal 在您的终端上

which jupyter

again on your terminal 再次在您的终端上

pip -V

See if they running in the same environment. 查看它们是否在同一环境中运行。
Post the output if you aren't able to make sense of it 如果无法理解输出结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM