2017-09-25 136 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