简体   繁体   English

ModuleNotFoundError:Jupyter 中没有名为“matploitlib”的模块

[英]ModuleNotFoundError: No module named 'matploitlib' in Jupyter

I installed the matploitlib in my python37 environment,我在我的 python37 环境中安装了matploitlib

在此处输入图像描述

but when I run my jupyter script, I still get error:但是当我运行我的 jupyter 脚本时,我仍然得到错误:

import cv2
import numpy as np
import matploitlib.pyplot as plt
import imutils

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/var/folders/qp/h96_smbd55ggtzwvml8wpl9h0000gn/T/ipykernel_53343/2169616448.py in <module>
      1 import cv2
      2 import numpy as np
----> 3 import matploitlib.pyplot as plt
      4 import imutils

ModuleNotFoundError: No module named 'matploitlib'

Either you have made typo in your code (if the environment is correct) or you have chosen the wrong environment where matplotlib is absent.要么您在代码中打错字(如果环境正确),要么您选择了不存在matplotlib的错误环境。

import matplotlib.pyplot as plt

Try with this in your code.在你的代码中试试这个。 If still it gives ModuleNotFoundError , then change your environment to your desired one where matplotlib is there.如果它仍然给出ModuleNotFoundError ,那么将您的环境更改为您想要的matplotlib所在的环境。

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

相关问题 ModuleNotFoundError:jupyter 中没有名为“pymysql”的模块 - ModuleNotFoundError: No module named 'pymysql' in jupyter ModuleNotFoundError:没有名为“skmultilearn”Jupyter 的模块 - ModuleNotFoundError: No module named 'skmultilearn' Jupyter jupyter ModuleNotFoundError:没有名为 matplotlib 的模块 - jupyter ModuleNotFoundError: No module named matplotlib ModuleNotFoundError:没有名为“pandas”的模块 - Jupyter - ModuleNotFoundError: No module named 'pandas' - Jupyter Jupyter 笔记本错误 ModuleNotFoundError:没有名为“datascience”的模块 - Jupyter notebook error ModuleNotFoundError: No module named 'datascience' ModuleNotFoundError:jupyter 笔记本上没有名为“web3”的模块 - ModuleNotFoundError: No module named 'web3' on jupyter notebook ModuleNotFoundError:jupyter 笔记本中没有名为“seaborn”的模块 - ModuleNotFoundError: No module named 'seaborn' in jupyter notebook ModuleNotFoundError:Jupyter 笔记本上没有名为“cv2”的模块 - ModuleNotFoundError: No module named 'cv2' on Jupyter notebook ModuleNotFoundError:没有名为“seaborn”的模块。 在线 jupyter 笔记本 - ModuleNotFoundError: No module named 'seaborn'. online jupyter notebook ModuleNotFoundError:没有名为“numpy”的模块 - Jupyter Notebook - ModuleNotFoundError: No module named 'numpy' - Jupyter Notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM