我正在尝试更新我的 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)
有谁知道如何解决这个问题?