无法在 Parrot 操作系统上安装 Python 2

问题描述 投票:0回答:1

我在尝试在 Parrot 操作系统上安装 Python 2 时遇到问题。每当我运行命令时:

sudo apt-get install python2

我收到以下输出: `阅读包裹清单...完成 构建依赖树...完成 读取状态信息...完成 包 python2 不可用,但被另一个包引用。 这可能意味着该包丢失、已过时或 只能从其他来源获得 然而,以下软件包取代了它: dh-python

E:软件包“python2”没有安装候选者`

我也尝试使用 sudo apt install python2,甚至更新了存储库文件 /etc/apt/sources.list,但我仍然无法安装 Python 2。

有人能解决这个问题吗?任何帮助将不胜感激。

在尝试在我的 Parrot 操作系统上安装 Python 2 时,我首先使用命令

sudo apt-get install python2
,这导致出现错误,指出包
python2
不可用。然后我尝试使用
sudo apt install python2
,但遇到了同样的问题。

我的期望是这些命令中的任何一个都可以在我的系统上成功安装 Python 2,从而允许我将其用于开发目的或满足其他软件的依赖关系。但是,尽管更新了存储库文件

/etc/apt/sources.list
以包含相关源,但我无法继续安装。

python python-2.7 parrot-os
1个回答
0
投票

可能是python2.7

sudo apt-get install python2.7

代替python2

sudo apt-get install python2

https://packages.debian.org/buster/python2.7

© www.soinside.com 2019 - 2024. All rights reserved.