qt.qpa.xcb: could not connect to display

qt.qpa.xcb: could not connect to display的解决方案

1.安装合适的opencv-python的库

2.在安装Mobaxterm启动后,在运行的程序中添加os.environ['DISPLAY'] = 'localhost:10.0',否则会报cannot connect to X server localhost:10.0

你可能感兴趣的:(深度学习,人工智能,qt,opencv)