No module named 'cv_bridge'


At some point in the tutorial, I am trying to launch python scripts/ --classes coco.names --num_classes $num_classes --weights ./checkpoints/ but then I get the error :

File “scripts/”, line 31, in
from cv_bridge import CvBridge
ImportError: No module named 'cv_bridge’

Although I did pip install cv_bridge that gave me Requirement already satisfied: cv_bridge in /opt/ros/kinetic/lib/python2.7/dist-packages (1.12.8) and indeed when creating an empty python script and juste calling import cv_bridge no error appear … So it seems to me that it comes from the script.

If someone has a solution I would be grateful

Gracias amigos !


Could you recheck the comand instructions in the notebook? You might have forgot to source and activate the virtual envs for python3

1 Like