You are using pip version 21.3.1, however version 22.1 is available.

You are using pip version 21.3.1, however version 22.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

 

[root@iZ0jl3p5inpmj4c7dh31kqZ ~]# pip -V
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
[root@iZ0jl3p5inpmj4c7dh31kqZ ~]# pip3 -V
pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)

 

 pip3 install docker-compose

 

 

解决方法:
1.pip直接更新
pip install --upgrade pip
pip3 install --user --upgrade pip
2.直接使用后面的提示命令
也就是you should consider upgrading via the 后面的命令
3.使用命令

python3 -m pip install pip==版本号
————————————————
版权声明:本文为CSDN博主「New Dataer」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_40984307/article/details/106137603

posted @ 2022-05-17 13:53  滴滴滴  阅读(3615)  评论(0编辑  收藏  举报