The reason lies in the CV of ROS_ Bridge only supports python2. If you want to use python3, you need to compile CV by yourself_ Bridge bag. My environment: Ubuntu 18.04 + ROS + Python 3.6 (anaconda3 is installed, but Python 3.6 is used)
refer to the first answer in the link for specific steps (like more answers):