【问题标题】:I am in trouble, I don't want to reinstall the OS again我有麻烦了,我不想重新安装操作系统
【发布时间】:2019-06-23 02:57:17
【问题描述】:

我想在 Ubuntu 中安装 python3.7,所以我删除了 python3.4

sudo apt-get remove python3.4
sudo apt-get purge python3.4

这才发现不对劲,有些系统文件是python3.4写的。

输入sudo apt-get install python3.7-minimal,我得到unable to locate python3.7-minimal couldn't find any package by regex python3.7-minimal

我真的很害怕,我不想重新安装操作系统!

我能做什么?

【问题讨论】:

  • sudo apt-get install python3.7
  • sudo apt-get install python3.7 的输出无法定位 package3.7 无法通过正则表达式 python3.1 找到 ang 包
  • 太棒了。将其添加到您的问题中。确保复制并粘贴输出,因为您键入的内容似乎有几个错误。这样就有问题要解决了。本网站面向问答,而非支持。
  • 我的建议是再次安装 python3.4 以便需要它的软件包满意。然后解决如何获取 Python 3.7 的问题。
  • 我尝试安装python3.4,但它说无法获取一些档案,由于缺少一些系统文件,我无法连接网络。

标签: python-3.x ubuntu-14.04


【解决方案1】:

删除 Python 不太可能对您的系统造成任何损害。如果您看到这方面的证据,请就该证据提出问题。

但是,Ubuntu 14 上的 Python 3.7 是非常旧的 Ubuntu 上的一个非常新的 Python。 Ubuntu 肯定没有官方软件包,甚至来自 Jonothon Fdeadsnakes 的流行 PPA 也不支持这种组合。

如果您无法升级到更新的 Ubuntu,那么您将不得不尝试自己编译 Python 3.7。这方面有很多指南,但通常不适合胆小的人。你可以开始here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-25
    • 2012-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-18
    • 1970-01-01
    相关资源
    最近更新 更多