我正在 Ubuntu OS 上使用 opencv 开发 python 项目
import numpy as np
import cv2
img = cv2.imread("LillyBellea.png", 1)
img = cv2.imwrite("LillyBellea.jpeg", img)
cv2.imshow("original", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
当我运行这个程序时出现错误
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
有人可以帮忙吗, 我已关注 this回答,但它不适合我
最佳答案
这为我解决了这个问题:
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
见:https://github.com/conda-forge/glib-feedstock/issues/19了解更多信息。
关于python - GLib-GIO-Message : Using the 'memory' GSettings backend. 您的设置将不会被保存或与其他应用程序共享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44934641/