问题1: libcudart.so.9.0: cannot open shared object file: No such file or directory
解决: 在对应的 bashrc
中增加一行 module load cuda/9.0
问题2:libnvrtc.so.9.0: cannot open shared object file: No such file or directory
解决: 找到对应的 libnvrtc.so.9.0 路径,然后添加到对应的环境变量即可
export PATH=$PATH:/opt/lib/cuda-9.0/lib64/libnvrtc.so.9.0
# 在对应的 bashrc 中添加:
module load cuda/9.0
报错: /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/imgproc/src/color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'CvtHelper'
解决:
pip install opencv-python
# 可能会报错 import cv2
# ImportError: libGL.so.1: cannot open shared object file: No such file or directory
# 执行下面这一步
pip install opencv-python-headless