python - 在ubuntu 18.04上安装python 2.7

标签 python linux ubuntu

有办法在 Ubuntu 18.04 上安装 Python 2.7 吗? 我尝试了这个命令,但它不起作用。

sudo apt install python-minimal

有办法手动安装吗?我尝试使用 python 2.7 作为不支持 python 3 的软件。

谢谢!

最佳答案

在安装之前运行这些命令以确保您的存储库是最新的

sudo apt update
sudo apt upgrade
sudo apt install python2.7

然后为 python 2 安装 pip:

sudo apt install python-pip

关于python - 在ubuntu 18.04上安装python 2.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59632017/

相关文章:

python - AWS CDK 解析错误 : Unable to resolve object tree with circular reference

python - 基于 django 模型中的子组在 SQL 中进行插值

python - 注释字段上的 django-filter 过滤器

linux - kernel32.dll wine |菜鸟警告|

c - 第二次读取内核会覆盖第一次实例

php - 使用 PHP 脚本发布 ajax 请求

bash - ubuntu:将多行写入文本文件

c - Ubuntu 64 上的 gethostbyaddr

python - 检查字典中是否存在键列表

c++ - ld 返回的退出状态 1 是什么?