Ubuntu 20.04.1安装pip

Ubuntu 20.04中可以安装python2,但是不见了pip,是不是2很过时了?
经查询需要在线安装

wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
pip -V

一些常用包的安装,用猫说狗好

sudo pip install paho-mqtt
sudo pip install influxdb

另外pip提示

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. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

百度译文

抨击:Python2.7在2020年1月1日结束了它的生命。请升级Python,因为python2.7不再维护。pip21.0将在2021年1月停止对python2.7的支持。有关pip中python2支持的更多详细信息,请访问https://pip.pypa.io/en/latest/development/release process/#python-2-supportpip21.0将删除对该功能的支持。

标签: none

添加新评论