[英]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.