[英]Getting “GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.” error in Anaconda
[英]GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications
我正在 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.
任何人都可以在這里幫忙嗎,我已經按照這個答案做了,但它對我不起作用
這為我解決了這個問題:
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
有關詳細信息,請參閱: https ://github.com/conda-forge/glib-feedstock/issues/19。
我想添加(因為我還不能評論),實際上要解決這個問題需要添加到本地bashrc,否則,每次打開終端時,導出都會消失。
sudo apt install dconf-gsettings-backend:i386
幫我修好了。 (注意:在我的例子中,我在 x64 系統上運行 x86 應用程序。)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.