|
|
ERROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
" C8 l1 x9 [) c5 P+ C i5 R ^9 l5 |- q, w. b1 m
解决办法:
1 [$ |- y2 x3 t! Y$ z; v4 J 安装reqeuts 时需要单独安装:
; X' D9 q0 u& D/ v% r
, c7 h0 D9 h% h% c( tpip install requests --upgrade --ignore-installed requests
/ E3 D7 {4 n3 M+ }1 S' b1 ^ j5 T. t
V4 ^7 w# R" xDEPRECATION: 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.
6 ], M4 Y9 k7 H; [* ZLooking in indexes: http://mirrors.aliyun.com/pypi/simple/
; J2 c% t' h2 A0 B! c! ?1 w) ~/ OCollecting requests5 `4 }4 E' R0 m
Downloading http://mirrors.aliyun.com/pypi/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63 kB) D: g$ v R/ j6 d6 ^: g+ g
|████████████████████████████████| 63 kB 343 kB/s ' b2 [2 P# k$ r( v2 {0 F4 p
Collecting certifi>=2017.4.17) F' M& o+ f- T$ |* n4 B
Downloading http://mirrors.aliyun.com/pypi/packages/37/45/946c02767aabb873146011e665728b680884cd8fe70dde973c640e45b775/certifi-2021.10.8-py2.py3-none-any.whl (149 kB)5 d- i! R' |. @
|████████████████████████████████| 149 kB 346 kB/s ; q# o9 {' ~+ B7 S$ d' F; l4 ~. M( Z
Collecting urllib3<1.27,>=1.21.1( L7 a( q8 y3 F% e8 y6 L
Downloading http://mirrors.aliyun.com/pypi/packages/ec/03/062e6444ce4baf1eac17a6a0ebfe36bb1ad05e1df0e20b110de59c278498/urllib3-1.26.9-py2.py3-none-any.whl (138 kB)6 n; \2 j. b( | }) Z
|████████████████████████████████| 138 kB 352 kB/s ) b" e, Z) L$ Y* b! L$ h& x
Collecting idna<3,>=2.5; python_version < "3" \, `* Y f. R$ S+ E! W* _
Downloading http://mirrors.aliyun.com/pypi/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58 kB)! e" F' h1 f) g6 f% J
|████████████████████████████████| 58 kB 349 kB/s
9 y! F o X4 V* V9 t f! ]2 KCollecting chardet<5,>=3.0.2; python_version < "3"
* P4 ?- G8 B: |. f# P8 L. V Downloading http://mirrors.aliyun.com/pypi/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178 kB)' n) G' g/ q Z* T
|████████████████████████████████| 178 kB 348 kB/s
" }- g6 N4 t7 i8 n/ X7 D2 H ^Installing collected packages: certifi, urllib3, idna, chardet, requests" \1 a1 d# `+ t) W
# H% t, b$ i9 H( `* D) I& }
然后再执行pip install .
, a) a# \/ j( I' K即可解决问题;
: i& h! ?, i, P1 i* u2 u. u/ R0 N" j. g; D X N
) B8 o2 N: `/ V& V
如图:; ]% t8 D/ q) l$ P! L- Q, R
[root@openstack-gnocchi kolla-ansible]# pip install ., Q3 L: Q$ _. i l
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. c0 W; X' x# f( G
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
$ I! X% O8 ~: x* q3 ]3 oProcessing /root/kolla-ansible
2 @ U( m# f& D: B% RRequirement already satisfied: pbr!=2.1.0,>=2.0.0 in /usr/lib/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (5.9.0)
$ b+ p8 y) S9 e- E ^Collecting docker>=2.4.2
' s- U1 e: k: l2 C) k- y5 a. c( } Downloading http://mirrors.aliyun.com/pypi/packages/c4/22/410313ad554477e87ec406d38d85f810e61ddb0d2fc44e64994857476de9/docker-4.4.4-py2.py3-none-any.whl (147 kB)
; E/ R8 A* C2 h7 o1 U6 y3 v |████████████████████████████████| 147 kB 242 kB/s
& O; ?. R! s% r9 \' mCollecting Jinja2!=2.9.0,!=2.9.1,!=2.9.2,!=2.9.3,!=2.9.4,>=2.8" H" D: N0 ~7 d0 `: _+ }. S; S
Downloading http://mirrors.aliyun.com/pypi/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)6 |. ]9 G4 Y% v
|████████████████████████████████| 125 kB 344 kB/s 9 l8 \' f) k5 m& f
Requirement already satisfied: six>=1.10.0 in /usr/lib/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (1.16.0)4 n" {* X# B& ]7 e8 j; s3 y
Collecting oslo.config>=5.1.0* G) L- F% B! L- ~; x0 N( F
Downloading http://mirrors.aliyun.com/pypi/packages/5c/45/53255cdbabefabc4ac8ae36671ecbd8a92a6d029363fcae9126a27fb81d7/oslo.config-7.0.0-py2.py3-none-any.whl (125 kB)
1 t! n" _ J: c( {9 Y) x |████████████████████████████████| 125 kB 320 kB/s & @# h" B* c0 `
Collecting oslo.utils>=3.33.0/ V- T# D4 n; p5 X
Downloading http://mirrors.aliyun.com/pypi/packages/82/9c/568e90a41b29b255dcdb5d39d4ad2ad4c92ba7ed1af9746ddbd7680768ba/oslo.utils-3.42.1-py2.py3-none-any.whl (100 kB)
7 T& ^ E1 L% h& W" `7 |' V |████████████████████████████████| 100 kB 333 kB/s
; [2 T7 U6 v( Q, M. Q7 v* ?3 QCollecting setuptools!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0,>=16.0% E' R8 Z4 g; ]: n. p2 E# s/ v
Downloading http://mirrors.aliyun.com/pypi/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006ec932b4/setuptools-44.1.1-py2.py3-none-any.whl (583 kB)
- O3 A( z$ B3 {) Q' s, I* X7 B6 e8 ~ |████████████████████████████████| 583 kB 321 kB/s ; v0 ?; t. m" A0 C* J' }
Requirement already satisfied: PyYAML>=3.10 in /usr/lib64/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (5.4.1)
4 S+ C4 W5 A0 e- w9 m- p. v! b3 NCollecting netaddr>=0.7.182 A' Y H- j0 K8 n, g
Downloading http://mirrors.aliyun.com/pypi/packages/ff/cd/9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4/netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
( l& {/ e2 I8 x7 j, W |████████████████████████████████| 1.9 MB 340 kB/s
5 @: R. R" n# \Requirement already satisfied: cryptography!=2.0,>=1.9 in /usr/lib64/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (3.3.2)& F a/ d& l, G" Y3 g( O: a& S
Collecting jmespath>=0.9.0
# h! t* } a. G. d Downloading http://mirrors.aliyun.com/pypi/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl (24 kB). Z/ |* D! O, e7 M) t& c9 b" j( N9 K
Requirement already satisfied: requests!=2.18.0,>=2.14.2 in /usr/lib/python2.7/site-packages (from docker>=2.4.2->kolla-ansible==6.2.4.dev4) (2.27.1)
- T% z8 E' f+ K! hCollecting websocket-client>=0.32.0. \ T( O! W9 c# c
Downloading http://mirrors.aliyun.com/pypi/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)4 J) `( L9 Y5 c0 s1 X, L
|████████████████████████████████| 67 kB 352 kB/s
$ z, j% T4 F4 f4 o# [Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/lib/python2.7/site-packages (from docker>=2.4.2->kolla-ansible==6.2.4.dev4) (3.5.0.1)% Y8 Z9 i3 G9 ]
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/site-packages (from docker>=2.4.2->kolla-ansible==6.2.4.dev4) (1.0.16)
+ d5 S# R2 r" _Collecting MarkupSafe>=0.23
& S& x# O. Z+ c6 ] Downloading http://mirrors.aliyun.com/pypi/packages/fb/40/f3adb7cf24a8012813c5edb20329eb22d5d8e2a0ecf73d21d6b85865da11/MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl (24 kB) C5 {1 g* `/ \4 E
Collecting stevedore>=1.20.0- j1 r1 s4 X5 z) I- G
Downloading http://mirrors.aliyun.com/pypi/packages/e6/49/a35dd566626892d577e426dbe5ea424dd7fbe10645f2c1070dcba474eca9/stevedore-1.32.0-py2.py3-none-any.whl (43 kB) p% G# \. p" R) K& r5 r& ]
|████████████████████████████████| 43 kB 340 kB/s
6 A ~# F. Z! BCollecting oslo.i18n>=3.15.3 j" L5 X& m7 H; U; e" W
Downloading http://mirrors.aliyun.com/pypi/packages/4e/a4/e2c71ea714266097b2edc5188462cfc8f0fffd277ef148a33430199b4a0a/oslo.i18n-3.25.1-py2.py3-none-any.whl (47 kB); d2 D2 x1 p" X/ a8 ?; L
|████████████████████████████████| 47 kB 338 kB/s
6 p r5 [7 m: q) FCollecting rfc3986>=1.2.0
7 N7 d6 E! C7 c- P6 K* I Downloading http://mirrors.aliyun.com/pypi/packages/c4/e5/63ca2c4edf4e00657584608bee1001302bbf8c5f569340b78304f2f446cb/rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
% K; @5 `- z+ o, A) f8 o" G1 ICollecting debtcollector>=1.2.09 s* o O, ^8 `
Downloading http://mirrors.aliyun.com/pypi/packages/ca/ab/e34b13877f84a198b043166a82baf0ae8b9ed1daa83b6ebde776e8628b0a/debtcollector-1.22.0-py2.py3-none-any.whl (23 kB)
* O; s7 D" J- XRequirement already satisfied: enum34>=1.0.4; python_version == "2.7" or python_version == "2.6" or python_version == "3.3" in /usr/lib/python2.7/site-packages (from oslo.config>=5.1.0->kolla-ansible==6.2.4.dev4) (1.1.10)
+ a( |7 ?# ]7 r) ?Collecting pyparsing>=2.1.0
6 W; i5 k! K; ^$ C$ Q: A. y$ ~' G Downloading http://mirrors.aliyun.com/pypi/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
: B2 P. Z, }# x- q* Y |████████████████████████████████| 67 kB 277 kB/s
% X# ~. G: Y: q% F) B- H+ JCollecting funcsigs>=1.0.0; python_version == "2.7" or python_version == "2.6"
5 L% w* W$ m' W! t/ L5 t' B$ r Downloading http://mirrors.aliyun.com/pypi/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl (17 kB). p* P/ _% H$ A5 e' ]; A7 t4 s) m
Collecting pytz>=2013.6
! R' v% d& ]5 ~7 e Downloading http://mirrors.aliyun.com/pypi/packages/60/2e/dec1cc18c51b8df33c7c4d0a321b084cf38e1733b98f9d15018880fb4970/pytz-2022.1-py2.py3-none-any.whl (503 kB)8 }' y. v1 h& }, } a1 p7 O
|████████████████████████████████| 503 kB 256 kB/s
% q6 g% g! R* X& d$ i$ ?, lCollecting iso8601>=0.1.11
: k7 ^1 U1 a7 J Downloading http://mirrors.aliyun.com/pypi/packages/d7/f8/8f315ea8272359d9ae57086581fb4c469be80e6b36bb36583c11bb19e6c4/iso8601-0.1.16-py2.py3-none-any.whl (10 kB)' p1 E0 o7 Z1 u7 R- b0 C
Collecting netifaces>=0.10.4
: x: {/ q! ^* k Downloading http://mirrors.aliyun.com/pypi/packages/89/b2/b0201e550aee1fb84de0a951bfb74a91b67d49a77d8cb5334b7585e40a77/netifaces-0.11.0-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl (31 kB)* \$ I0 z. N8 ]/ x: i. p
Collecting monotonic>=0.6; python_version < "3.3"
- F1 q+ P6 {/ F# {% F @+ j; } Downloading http://mirrors.aliyun.com/pypi/packages/9a/67/7e8406a29b6c45be7af7740456f7f37025f0506ae2e05fb9009a53946860/monotonic-1.6-py2.py3-none-any.whl (8.2 kB)- J' i) N) V$ v4 @4 [( v% k8 _1 Z
Collecting importlib-resources; python_version < "3.7"9 w. Q5 C( k( v# _, f5 y( e
Downloading http://mirrors.aliyun.com/pypi/packages/8d/94/2f6ceee0c4e63bff0177c07e68d27c937a19f6bc77c4739755b49f5adb04/importlib_resources-3.3.1-py2.py3-none-any.whl (26 kB)
0 d) D: Q( |* r3 lRequirement already satisfied: cffi>=1.12 in /usr/lib64/python2.7/site-packages (from cryptography!=2.0,>=1.9->kolla-ansible==6.2.4.dev4) (1.15.0)8 H# M$ g6 ? K2 K
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests!=2.18.0,>=2.14.2->docker>=2.4.2->kolla-ansible==6.2.4.dev4) (2021.10.8). a. q& J. L2 N
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>=2.4.2->kolla-ansible==6.2.4.dev4) (1.26.9)
7 l" H6 ?3 P) m5 A, RRequirement 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>=2.4.2->kolla-ansible==6.2.4.dev4) (2.10)' x0 I: P6 j6 b& Q* N7 \/ ~
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>=2.4.2->kolla-ansible==6.2.4.dev4) (4.0.0)% c! P" _' _4 E: d5 D6 s
Collecting Babel!=2.4.0,>=2.3.4
: \ v$ _7 P! ? Downloading http://mirrors.aliyun.com/pypi/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)' w2 r/ u) h' p( ]. B
|████████████████████████████████| 8.8 MB 360 kB/s 7 X6 h. Q0 C$ b7 |' T
Collecting wrapt>=1.7.07 f2 T# ?* I9 ?, N- n5 T* H2 e) H$ c: U7 Y
Downloading http://mirrors.aliyun.com/pypi/packages/e6/57/d5673f5201ccbc287e70a574868319267735de3041e496e1e26b48d8f653/wrapt-1.14.1-cp27-cp27mu-manylinux2010_x86_64.whl (75 kB)
) Y1 a; t/ D8 V/ e. v |████████████████████████████████| 75 kB 354 kB/s
) N( i% c6 D/ ]! }Collecting singledispatch; python_version < "3.4"
2 J o& Q1 K4 l7 T5 O) P3 a7 s+ D Downloading http://mirrors.aliyun.com/pypi/packages/3f/09/2a17c6505a8373229cb3de6161e3af74ff90afcf4516719aa6cf32fad151/singledispatch-3.7.0-py2.py3-none-any.whl (9.2 kB)
3 q7 H: ~5 i) p) ~2 ]1 MCollecting zipp>=0.4; python_version < "3.8"9 Q4 I% t" O- K0 y3 i( x. u
Downloading http://mirrors.aliyun.com/pypi/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
7 [0 m2 R6 e' R% j [* u; UCollecting pathlib2; python_version < "3"5 j# ^/ w8 p& o1 {- u& K
Downloading http://mirrors.aliyun.com/pypi/packages/09/eb/4af4bcd5b8731366b676192675221c5324394a580dfae469d498313b5c4a/pathlib2-2.3.7.post1-py2.py3-none-any.whl (18 kB)
+ _0 {7 F# L# B9 @Collecting contextlib2; python_version < "3"
, E) z9 v& R2 H/ j8 G1 w2 U Downloading http://mirrors.aliyun.com/pypi/packages/85/60/370352f7ef6aa96c52fb001831622f50f923c1d575427d021b8ab3311236/contextlib2-0.6.0.post1-py2.py3-none-any.whl (9.8 kB)
. T* @( G9 o b& @9 U4 ECollecting typing; python_version < "3.5"3 v. M6 B, w: d( ]: D* v7 g) b
Downloading http://mirrors.aliyun.com/pypi/packages/0b/cb/da856e81731833b94da70a08712f658416266a5fb2a9d9e426c8061becef/typing-3.10.0.0-py2-none-any.whl (26 kB)' X7 r9 U# s5 o" b
Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.12->cryptography!=2.0,>=1.9->kolla-ansible==6.2.4.dev4) (2.21)
3 j5 O: R) E/ u& L4 e# pProcessing /root/.cache/pip/wheels/06/57/a1/36019a17d0f1e61a90d47d48e777411daf948e7515697c68d5/scandir-1.10.0-cp27-cp27mu-linux_x86_64.whl' t4 V) Z, L4 j1 G
Building wheels for collected packages: kolla-ansible' L% v/ C1 n0 J
Building wheel for kolla-ansible (setup.py) ... done, V, |6 |7 C7 Z& d
Created wheel for kolla-ansible: filename=kolla_ansible-6.2.4.dev4-py2-none-any.whl size=971232 sha256=429291fe17b06d2a1c9c6d2d65660ce98d2f90b4595a01aa4ed4c9d29c1e31ab
5 f' F% [9 J& Y3 c Stored in directory: /root/.cache/pip/wheels/4e/7c/47/966a2e36513a482219adcbe974aa18381f19f0a87f45d19297
6 t; Q% R/ x) Y; D1 A2 bSuccessfully built kolla-ansible6 ]3 I5 R _% M
Installing collected packages: websocket-client, docker, MarkupSafe, Jinja2, singledispatch, contextlib2, zipp, typing, scandir, pathlib2, importlib-resources, netaddr, stevedore, pytz, Babel, oslo.i18n, rfc3986, wrapt, funcsigs, debtcollector, oslo.config, pyparsing, iso8601, netifaces, monotonic, oslo.utils, setuptools, jmespath, kolla-ansible
; P2 h# f& q0 ^' D Attempting uninstall: MarkupSafe
; E1 D) \2 f& h! e: i" ` Found existing installation: MarkupSafe 0.11. C: W) x8 e# x
Uninstalling MarkupSafe-0.11:
% G7 D* W: R% p3 e$ r Successfully uninstalled MarkupSafe-0.11( U6 W' k( [5 ?& }2 v3 {1 d5 P9 S
Attempting uninstall: Jinja2 Z! Q% v# f8 o" T" D
Found existing installation: Jinja2 2.7.2. i# Z2 V1 \6 U3 R ]' C
Uninstalling Jinja2-2.7.2:
* @$ L; v9 U& h* O) q Successfully uninstalled Jinja2-2.7.2* }* G. ^2 g% x1 m; I/ Q$ E
Attempting uninstall: Babel
) t* C4 y# y/ l: D( ~% a+ q Found existing installation: Babel 0.9.6* w% w2 c: b& F+ ?
Uninstalling Babel-0.9.6:
; `( Z4 J# z* A" {! Y( `( G1 J Successfully uninstalled Babel-0.9.6' h2 |3 C" y z9 ?/ y
Attempting uninstall: setuptools
% a( _5 @( s% F _ Found existing installation: setuptools 0.9.8
$ s, T0 S* k# r4 p& j) Q Uninstalling setuptools-0.9.8:
% e0 o% t$ N8 R$ M/ l Successfully uninstalled setuptools-0.9.8
, k2 G# {7 C6 {. [5 M$ _- }Successfully installed Babel-2.9.1 Jinja2-2.11.3 MarkupSafe-1.1.1 contextlib2-0.6.0.post1 debtcollector-1.22.0 docker-4.4.4 funcsigs-1.0.2 importlib-resources-3.3.1 iso8601-0.1.16 jmespath-0.10.0 kolla-ansible-6.2.4.dev4 monotonic-1.6 netaddr-0.8.0 netifaces-0.11.0 oslo.config-7.0.0 oslo.i18n-3.25.1 oslo.utils-3.42.1 pathlib2-2.3.7.post1 pyparsing-2.4.7 pytz-2022.1 rfc3986-1.5.0 scandir-1.10.0 setuptools-44.1.1 singledispatch-3.7.0 stevedore-1.32.0 typing-3.10.0.0 websocket-client-0.59.0 wrapt-1.14.1 zipp-1.2.0
; l6 n' t: u& C[root@openstack-gnocchi kolla-ansible]#
' k% y( V9 n- R4 K/ @5 T* U' \ |
|