Python add apt repository命令返回extrange错误
我正在尝试安装R3.6。 但当我尝试运行“添加存储库”时,会出现一个巨大的错误:Python add apt repository命令返回extrange错误,python,python-3.x,ubuntu,Python,Python 3.x,Ubuntu,我正在尝试安装R3.6。 但当我尝试运行“添加存储库”时,会出现一个巨大的错误: sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/' 错误是: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in <module> from soft
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/'
错误是:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 67, in <module>
from gi.repository import Gio
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)
回溯(最近一次呼叫最后一次):
文件“/usr/bin/add apt repository”,第11行,在
从softwareproperties.softwareproperties导入softwareproperties,快捷方式\u处理程序
文件“/usr/lib/python3/dist packages/softwareproperties/softwareproperties.py”,第67行,在
从gi.repository导入Gio
文件“/usr/lib/python3/dist-packages/gi/_-init__.py”,第42行,在
从…起导入
ImportError:无法从“gi”导入名称“\u gi”(/usr/lib/python3/dist packages/gi/\uuu init\uuuu.py)
我不知道为什么会这样。
欢迎提供有关如何添加存储库以安装R的任何帮助。您是否正在尝试安装R编程语言或Python?我正在尝试安装R 3.5,您确定吗?你是说R作为一种独立的语言,对吗?