call opencv and guizero in raspberry [closed]

asked 2020-06-24 00:19:00 -0600

hi experts,

I tried to call guizero in my python program, it worked no problem. I installed opencv4 in raspberry, and write code to read camera data and save to file. I can run the following commands in terminal, and it worked

   workon cv 
   python3 mycamera.py

now the question is, I use both guizero and opencv in my program. how to run my program? If I ran it in terminal, it can't find guizero module. if I ran it in Python ide directly, it can't find opencv module.

please help me,appreciate.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2020-06-24 01:08:49.587291

Comments

sorry, but your question is about managing python modules / venvs, not at all about opencv

berak gravatar imageberak ( 2020-06-24 01:09:36 -0600 )edit

Try this:

source ~/.profile
workon cv
cd /home/pi/python3 mycamera.py
supra56 gravatar imagesupra56 ( 2020-06-24 04:09:04 -0600 )edit