找回密码
 注册
查看: 1522|回复: 2

TASK [baremetal : Install docker SDK for python

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-3 20:04:35 | 显示全部楼层 |阅读模式
TASK [baremetal : Install docker SDK for python] ******************************************************************************************************************) L1 V) O" S+ y
fatal: [compute01]: FAILED! => {"changed": false, "cmd": ["/bin/pip2", "install", "-U", "docker"], "msg": "stdout: Looking in indexes: http://mirrors.aliyun.com/pypi/simple/\nRequirement already up-to-date: docker in /usr/lib/python2.7/site-packages (5.0.3)\n\n:stderr: 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.\nERROR: Package 'docker' requires a different Python: 2.7.5 not in '>=3.6'\n"}
3 Z, ^9 J  K: T( J3 v+ U4 d9 D  Dfatal: [compute02]: FAILED! => {"changed": false, "cmd": ["/bin/pip2", "install", "-U", "docker"], "msg": "stdout: Looking in indexes: http://mirrors.aliyun.com/pypi/simple/\nRequirement already up-to-date: docker in /usr/lib/python2.7/site-packages (5.0.3)\n\n:stderr: 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.\nERROR: Package 'docker' requires a different Python: 2.7.5 not in '>=3.6'\n"}
& R6 s" S1 Q& w5 l  ofatal: [compute03]: FAILED! => {"changed": false, "cmd": ["/bin/pip2", "install", "-U", "docker"], "msg": "stdout: Looking in indexes: http://mirrors.aliyun.com/pypi/simple/\nRequirement already up-to-date: docker in /usr/lib/python2.7/site-packages (5.0.3)\n\n:stderr: 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.\nERROR: Package 'docker' requires a different Python: 2.7.5 not in '>=3.6'\n"}
2 D8 x: m3 X2 ^) ?  Zok: [controller3]
, f1 [, ~% ?) S' O5 y. P( Y  Xok: [controller2]
: j& G: B2 w7 `$ w7 a: gok: [controller1]
1 ~+ i* B% F4 q& e( m9 n% A

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-12-3 20:06:38 | 显示全部楼层
[root@compute01 ~]# pip install -I websocket-client $ \- v7 h: G8 E8 {* z
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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.
' X6 g! i; W, ^, u; y& F% SLooking in indexes: http://mirrors.aliyun.com/pypi/simple/( i: E5 a" {* z) g
Collecting websocket-client
/ e, b2 B: \0 Z2 ^  Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (67 kB)
- j1 u9 r9 d' I, T  Y& u8 W9 J& j     |████████████████████████████████| 67 kB 14.7 MB/s ' a. ]3 G" z- d: U
Collecting six
3 V7 T& s$ Z/ @9 O) I  Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (11 kB)) X) s- f+ a+ f/ W0 z' I4 J; B  D
Installing collected packages: six, websocket-client
0 Y$ U$ |0 \! m: R1 q8 l9 }) W  NSuccessfully installed six-1.16.0 websocket-client-1.2.1

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-12-3 20:12:29 | 显示全部楼层
[root@compute01 ~]# pip install "docker==4.4.4"- E7 T. y- h9 t: d
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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.
& v0 ?6 E& ^4 |& c% M  j; kLooking in indexes: http://mirrors.aliyun.com/pypi/simple/9 ~2 s( {2 \, }9 }
Collecting docker==4.4.40 ]- f$ a% p  S, i/ c
  Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (147 kB)2 t# y3 v% O+ v
     |████████████████████████████████| 147 kB 16.5 MB/s
5 H) I4 c* P9 CRequirement already satisfied: six>=1.4.0 in /usr/lib/python2.7/site-packages (from docker==4.4.4) (1.16.0)1 z9 ]8 z, A: @8 K8 H7 }4 [
Requirement already satisfied: requests!=2.18.0,>=2.14.2 in /usr/lib/python2.7/site-packages (from docker==4.4.4) (2.26.0)1 ^' |" @' m5 Y( u9 X( p
Requirement already satisfied: websocket-client>=0.32.0 in /usr/lib/python2.7/site-packages (from docker==4.4.4) (1.2.1)
/ C) Y( e' ?  R1 \& }ERROR: Package 'websocket-client' requires a different Python: 2.7.5 not in '>=3.6'% M6 S9 c+ @# @4 U+ T
[root@compute01 ~]# pip install -U websocket-client
' Q- m" F3 A- x6 |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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.. d; p% N+ V. K8 [- g/ o2 k. G
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/. `% `1 P) Q9 P- `
Requirement already up-to-date: websocket-client in /usr/lib/python2.7/site-packages (1.2.1)  V/ f; w5 M  q) d+ J
ERROR: Package 'websocket-client' requires a different Python: 2.7.5 not in '>=3.6'
; N2 ^; d% C$ V& \5 r5 }[root@compute01 ~]# pip install -U "websocket-client"6 G0 b- W  n( c& u. g
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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.! ^0 \! z7 @; b
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
5 L+ p  {+ ?" MRequirement already up-to-date: websocket-client in /usr/lib/python2.7/site-packages (1.2.1)4 i8 E" `; `5 P- @
ERROR: Package 'websocket-client' requires a different Python: 2.7.5 not in '>=3.6'
3 r6 p& Q: |' t) X8 V[root@compute01 ~]# pip install -U "websocket-client==0.59"/ }/ H; ?) T, W" a2 l9 t
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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.
9 F2 }% D% b" W. g- S  \Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
8 r& c- U* {7 B$ WCollecting websocket-client==0.59
  R4 X8 s7 [3 S  I) R+ ^& I  Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (67 kB)- T6 e5 ^0 w; S% t+ X
     |████████████████████████████████| 67 kB 14.5 MB/s . H# F* o2 z; h! B
Requirement already satisfied, skipping upgrade: six in /usr/lib/python2.7/site-packages (from websocket-client==0.59) (1.16.0)% j" ]. w, {- A/ ~
Installing collected packages: websocket-client3 i& q9 Z0 M& B( q; ?
  Attempting uninstall: websocket-client
4 I0 N6 Q- Z; Q5 L    Found existing installation: websocket-client 1.2.1$ n% T9 o  x" i0 X( e' i# l+ ?9 j
    Uninstalling websocket-client-1.2.1:
- w) S) v: t0 p7 M( B( e      Successfully uninstalled websocket-client-1.2.1
* k( O  j# k0 o% w) r- Q0 {Successfully installed websocket-client-0.59.0
# n. S& D+ f- z4 M- k1 @[root@compute01 ~]# pip install "docker==4.4.4"# A: u( q8 G; r- o( |
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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.
3 F7 m# P6 M- s8 U; i' t% Q" p! nLooking in indexes: http://mirrors.aliyun.com/pypi/simple/
# k6 N$ p2 W4 Z- uCollecting docker==4.4.4: ^8 h. q3 b' T7 w: s9 c
  Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (147 kB)
+ P, {1 w% |) k7 d4 r0 C  g  ]; p     |████████████████████████████████| 147 kB 13.3 MB/s 1 L; T8 z5 i2 F3 ~
Requirement already satisfied: six>=1.4.0 in /usr/lib/python2.7/site-packages (from docker==4.4.4) (1.16.0)  m7 |8 H  g& A' `
Requirement already satisfied: requests!=2.18.0,>=2.14.2 in /usr/lib/python2.7/site-packages (from docker==4.4.4) (2.26.0). z8 A  s9 j# n6 t
Requirement already satisfied: websocket-client>=0.32.0 in /usr/lib/python2.7/site-packages (from docker==4.4.4) (0.59.0)
9 U6 _% ~/ n1 T' z; N7 T/ p1 K/ \Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/lib/python2.7/site-packages (from docker==4.4.4) (3.7.0.1)8 _; o1 N, b; l0 ^- F/ W
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/site-packages (from docker==4.4.4) (1.0.16)' p5 ^! |# H+ E1 q2 z) ~
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests!=2.18.0,>=2.14.2->docker==4.4.4) (2021.10.8)
  ]3 y3 ^/ A2 L1 @, u; k' x" |Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests!=2.18.0,>=2.14.2->docker==4.4.4) (1.26.7)
' u" N& e. E3 Y8 TRequirement already satisfied: idna<3,>=2.5; python_version < "3" in /usr/lib/python2.7/site-packages (from requests!=2.18.0,>=2.14.2->docker==4.4.4) (2.10)+ ?2 j; y8 {: u* ?2 @) _4 _
Requirement already satisfied: chardet<5,>=3.0.2; python_version < "3" in /usr/lib/python2.7/site-packages (from requests!=2.18.0,>=2.14.2->docker==4.4.4) (4.0.0)5 f% Z( Q; [, E' E! X& s1 \, q
Installing collected packages: docker
! d2 n- j8 i) C# q6 L# \6 L& wSuccessfully installed docker-4.4.4
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:57 , Processed in 0.019529 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表