2017-09-25 51 views
0

我的操作系統是Ubuntu 16.04 x84_64, 我安裝了Anaconda4.2(python3.5.2),然後我用它來安裝gedit。在Ubuntu16.04中安裝了python3.5.2,gedit出現了問題

sudo apt-get install gedit-plugins 

我試圖安裝一些我經常使用的插件,並且遇到了一些問題。

(gedit:4429): libpeas-WARNING **: Error initializing Python Plugin `Loader: PyGObject initialization failed` 
ImportError: could not import gobject (error was: ImportError("No module named 'gi'",)) 

(gedit:4429): libpeas-WARNING **: Please check the installation of all the Python related packages required by libpeas and try again 

(gedit:4429): libpeas-WARNING **: Loader 'python3' is not a valid PeasPluginLoader instance 

然後我跟着一些答案來更改插件文件,

Loader=python3 -----> Loader=python 

雖然一直顯示爲錯誤:

'(gedit:4907): libpeas-WARNING **: The 'python' plugin loader has not been enabled' 

我怎麼能解決這個問題? 任何幫助將不勝感激!

+0

''python --version''說什麼? –

+0

Python 3.5.2 :: Anaconda 4.2.0(64位) – YJHMITWEB

+0

聽起來好像gedit安裝程序在安裝過程中試圖使用別名「python3」,但是你有python作爲Python的別名3.您可以嘗試使用以下命令添加別名「python3」:「alias python3 =」python「」,然後再次運行gedit安裝程序。此別名將保留直到您關閉會話。 –

回答

0

你試過跑步嗎?

apt install python3-gi 
+0

是的,我已經安裝了它。 – YJHMITWEB