简体   繁体   English

linux上的旧python版本,是否需要升级?

[英]Old python version on linux, does it requires upgrade?

I keep getting messages when I use pip:当我使用 pip 时,我不断收到消息:

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. Python 2.7 的生命周期已于 2020 年 1 月 1 日结束。请升级您的 Python,因为 Python 2.7 已不再维护。 Blockquote块引用

what should I do?我该怎么办? Ignore it?忽略它? I've got python3 installed as well我也安装了 python3

It seems like you have downloaded python 3 but not pip3.看起来您已经下载了 python 3 但没有下载 pip3。 The fix to this is very simple.解决这个问题非常简单。 sudo apt-get install python3-pip This command should install pip3 in your system. sudo apt-get install python3-pip此命令应在您的系统中安装 pip3。 remember to use pip3 from now on to install packages for python 3. pip is for python 2. Also, don't delete python 2. It is a system requirement.记住从现在开始使用 pip3 来安装 python 3 的包。pip 是用于 python 2 的。另外,不要删除 python 2。这是系统要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM