安装命令
环境:py3.7, cuda11.1, torch1.10.2
conda create -n basicsr python=3.7 && \
pip --no-cache-dir install opencv-python argparse pyyaml h5py numpy pandas tensorboardX Pillow --upgrade&& \
pip --no-cache-dir install ./torch-1.10.2+cu111-cp37-cp37m-linux_x86_64.whl torchvision &&\
pip install rosbag --extra-index-url https://rospypi.github.io/simple/ && \
pip install cvbridge3 && \
pip install cv_bridge --extra-index-url https://rospypi.github.io/simple/ && \
pip install sensor_msgs --extra-index-url https://rospypi.github.io/simple/ && \
pip install geometry_msgs --extra-index-url https://rospypi.github.io/simple/
如下测试通过
import rosbag
import cv_bridge
from cv_bridge import CvBridge
测试导入包