我在python中测试了以下命令:
import cv2
我把它放在文件中b.py
并运行python b.py
. 但我遇到了以下错误:
Traceback (most recent call last):
File "b.py", line 1, in <module>
import cv2
File "/home/mypath/anaconda2/lib/python2.7/site-packages/cv2/__init__.py", line 9, in <module>
from .cv2 import *
ImportError: libXdmcp.so.6: cannot open shared object file: No such file or directory
这有什么问题?谢谢大家帮助我!