好的,我正在尝试我的第一个Raspberry Pi项目https://www.youtube.com/watch?v=Y2QFu-tTvTI
我已经按照安装open cv和其他依赖项的步骤进行了操作但是当我尝试运行它时出现以下错误
(cv) pi@raspberrypi:~/Smart-Security-Camera $ python main.py
Traceback (most recent call last):
File "main.py", line 3, in <module>
from mail import sendEmail
File "/home/pi/Smart-Security-Camera/mail.py", line 2, in <module>
from email.MIMEMultipart import MIMEMultipart
ImportError: No module named 'email.MIMEMultipart'
然后我尝试输入&#34; sudo python main.py&#34;得到了一个不同的消息,但同样的问题如下所示
(cv) pi@raspberrypi:~/Smart-Security-Camera $ sudo python main.py
Traceback (most recent call last):
File "main.py", line 5, in <module>
from camera import VideoCamera
File "/home/pi/Smart-Security-Camera/camera.py", line 2, in <module>
from imutils.video.pivideostream import PiVideoStream
ImportError: No module named imutils.video.pivideostream
最后我试过&#34; sudo python3 main.py&#34;而且同样的问题也同样不同。
(cv) pi@raspberrypi:~/Smart-Security-Camera $ sudo python3 main.py
Traceback (most recent call last):
File "main.py", line 1, in <module>
import cv2
ImportError: No module named 'cv2'
感谢任何帮助