ImportError: libXext.so.6: cannot open shared object file: No such file or directory

python docker 环境下

Traceback (most recent call last):
  File "./tools/trainval_net.py", line 11, in 
    from model.train_val import get_training_roidb, train_net
  File "/mnt/kjw/tf-faster-cnn/tools/../lib/model/train_val.py", line 12, in 
    from roi_data_layer.layer import RoIDataLayer
  File "/mnt/kjw/tf-faster-cnn/tools/../lib/roi_data_layer/layer.py", line 17, in 
    from roi_data_layer.minibatch import get_minibatch
  File "/mnt/kjw/tf-faster-cnn/tools/../lib/roi_data_layer/minibatch.py", line 15, in 
    import cv2
  File "/usr/local/lib/python2.7/dist-packages/cv2/__init__.py", line 3, in 
    from .cv2 import *
ImportError: libXext.so.6: cannot open shared object file: No such file or directory

解决办法

apt install python-qt4

qt4 里面有该包,可以直接拿来用

你可能感兴趣的:(python)