小编And*_*dre的帖子

如何在 Ubuntu 16.04 上将 Python 更新到最新版本

我正在尝试更新我的 python 版本,但每当我尝试:

 pip install --upgrade python
Run Code Online (Sandbox Code Playgroud)

输出是:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade
your Python as Python 2.7 is no longer maintained. A future version of pip will drop
support for Python 2.7. More details about Python 2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Requirement already up-to-date: python in /usr/lib/python2.7/lib-dynload (2.7.12)
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?

python python-2.7 python3 16.04

4
推荐指数
2
解决办法
2万
查看次数

标签 统计

16.04 ×1

python ×1

python-2.7 ×1

python3 ×1