|
|
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.
+ T. `* ?7 x/ Y9 e: j/ G
6 i: n# U; J+ d' ]解决办法:
1 a' r6 p; [6 b5 X% z& R) V- d 安装reqeuts 时需要单独安装:) N6 m/ ^" h# X7 x4 ]9 X# m
" I* N& [0 e7 {; q( E# i& @ ~3 Epip install requests --upgrade --ignore-installed requests
/ }6 n/ p' |% t, a
0 |4 h! _7 L v# F: S' MDEPRECATION: 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.+ \ }1 {- ^ I/ M \3 a% f5 ~5 [; m
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/8 O$ w* \0 o6 x2 Z- A( B
Collecting requests& A' F6 j& R: T! q2 o( v6 e+ u
Downloading http://mirrors.aliyun.com/pypi/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63 kB)
& }6 g$ b8 E4 T, I: Z |████████████████████████████████| 63 kB 343 kB/s
9 U) W) @- R. }7 F& \7 ^Collecting certifi>=2017.4.17
+ B0 f" i/ }8 f1 o0 l5 D; S; E- E( { Downloading http://mirrors.aliyun.com/pypi/packages/37/45/946c02767aabb873146011e665728b680884cd8fe70dde973c640e45b775/certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
; R: [! V* H/ e! o' d% Q |████████████████████████████████| 149 kB 346 kB/s ) |2 e& s/ ^* v
Collecting urllib3<1.27,>=1.21.11 z6 {) N/ p+ `3 m% }* b3 \
Downloading http://mirrors.aliyun.com/pypi/packages/ec/03/062e6444ce4baf1eac17a6a0ebfe36bb1ad05e1df0e20b110de59c278498/urllib3-1.26.9-py2.py3-none-any.whl (138 kB) E$ `7 _6 J% u4 R( V
|████████████████████████████████| 138 kB 352 kB/s i, b3 x$ E& O) Y
Collecting idna<3,>=2.5; python_version < "3"# s, b1 m! o/ C# L
Downloading http://mirrors.aliyun.com/pypi/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58 kB)
$ z5 b, z U2 Q; h5 L8 @ |████████████████████████████████| 58 kB 349 kB/s , o- j# f( u. A
Collecting chardet<5,>=3.0.2; python_version < "3"( g [8 c: y( b& \. N- j% [
Downloading http://mirrors.aliyun.com/pypi/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178 kB)
4 w Y6 v2 J3 u N; N- a3 j7 q |████████████████████████████████| 178 kB 348 kB/s - Y. ?5 Q. i- U* |' a1 ^9 C
Installing collected packages: certifi, urllib3, idna, chardet, requests
4 W( q! U% X- x) d- m7 j8 E- ?9 i! x+ V* R- w: v
然后再执行pip install .
( w3 B7 R) `, w9 |9 o- U即可解决问题;5 ]# o0 V% A' L- x2 a
8 j" D, z) I$ o$ M/ w) r3 ~, f/ Q
" z+ ]# R% L. Y$ Y( o( h% d如图:% o) A# n% S/ V- @+ o: ^# W& {
[root@openstack-gnocchi kolla-ansible]# pip install .
& U& s. C% s0 ]# 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.
1 u9 a4 L9 w {4 h& n& hLooking in indexes: http://mirrors.aliyun.com/pypi/simple/0 M+ S+ W% b5 P( m" E; B( a
Processing /root/kolla-ansible7 t) _5 y+ i$ U$ l7 {
Requirement 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)5 ?' T3 M9 y; b! D2 B
Collecting docker>=2.4.2
' w7 K2 a& a4 r9 _" F Downloading http://mirrors.aliyun.com/pypi/packages/c4/22/410313ad554477e87ec406d38d85f810e61ddb0d2fc44e64994857476de9/docker-4.4.4-py2.py3-none-any.whl (147 kB)8 W) {. P# n4 ? w7 Q- R
|████████████████████████████████| 147 kB 242 kB/s
/ S: c' g+ t& Z u1 b0 l' W: RCollecting Jinja2!=2.9.0,!=2.9.1,!=2.9.2,!=2.9.3,!=2.9.4,>=2.8
( E( v3 K* |- K! {# L$ j0 | Downloading http://mirrors.aliyun.com/pypi/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
, p7 c$ N) n6 F% R4 k$ } |████████████████████████████████| 125 kB 344 kB/s
- m6 z. ^8 N: v2 A1 yRequirement already satisfied: six>=1.10.0 in /usr/lib/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (1.16.0)
( y* C3 q% }" l- S1 e) y; @Collecting oslo.config>=5.1.04 a" R# g5 A8 y+ z9 c
Downloading http://mirrors.aliyun.com/pypi/packages/5c/45/53255cdbabefabc4ac8ae36671ecbd8a92a6d029363fcae9126a27fb81d7/oslo.config-7.0.0-py2.py3-none-any.whl (125 kB)% i" `+ a) Z2 l- Q" f' k+ x
|████████████████████████████████| 125 kB 320 kB/s
! l& {$ X, P) W1 ?( \5 jCollecting oslo.utils>=3.33.0
" X9 n3 n% \0 \) G Downloading http://mirrors.aliyun.com/pypi/packages/82/9c/568e90a41b29b255dcdb5d39d4ad2ad4c92ba7ed1af9746ddbd7680768ba/oslo.utils-3.42.1-py2.py3-none-any.whl (100 kB)5 y: W. w7 J% r* V" @3 h, [
|████████████████████████████████| 100 kB 333 kB/s 2 j+ j- z* e; m# A% }& ?' [( X
Collecting 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. Q. W/ f# s& }
Downloading http://mirrors.aliyun.com/pypi/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006ec932b4/setuptools-44.1.1-py2.py3-none-any.whl (583 kB)
4 t" ^' ` A2 v0 D$ ]: ^8 J |████████████████████████████████| 583 kB 321 kB/s , {3 o, q" M7 X& R( Z
Requirement already satisfied: PyYAML>=3.10 in /usr/lib64/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (5.4.1)
5 v, t+ _( \+ vCollecting netaddr>=0.7.18
5 e+ p$ A4 ]9 w% u. \- y Downloading http://mirrors.aliyun.com/pypi/packages/ff/cd/9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4/netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)1 @& s8 n3 u/ z1 _
|████████████████████████████████| 1.9 MB 340 kB/s
* y, _% {2 }2 d% T* n0 `2 oRequirement already satisfied: cryptography!=2.0,>=1.9 in /usr/lib64/python2.7/site-packages (from kolla-ansible==6.2.4.dev4) (3.3.2)
4 j4 y# f# A0 v1 \% N/ kCollecting jmespath>=0.9.0
# o* a2 t' a m$ [/ C Downloading http://mirrors.aliyun.com/pypi/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
" V$ t& o* q. A: H8 V; XRequirement 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)0 a! Z/ v4 o r r7 R
Collecting websocket-client>=0.32.0( O4 r N2 T5 I& u4 }6 ?
Downloading http://mirrors.aliyun.com/pypi/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)
3 w, Q3 @ z% b- F+ ~+ }# g# J |████████████████████████████████| 67 kB 352 kB/s ! j. N( D& m' D
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)
1 H6 m2 w4 O1 t" R t# R& nRequirement 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)
4 O: r$ W! \$ @+ D4 z) [5 M4 Y6 ?Collecting MarkupSafe>=0.23
9 F5 h" I- @5 c7 a; o, G Downloading http://mirrors.aliyun.com/pypi/packages/fb/40/f3adb7cf24a8012813c5edb20329eb22d5d8e2a0ecf73d21d6b85865da11/MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl (24 kB)0 V! I2 n. m" |% F
Collecting stevedore>=1.20.0
: R, d6 N2 V) B/ M; H5 m Downloading http://mirrors.aliyun.com/pypi/packages/e6/49/a35dd566626892d577e426dbe5ea424dd7fbe10645f2c1070dcba474eca9/stevedore-1.32.0-py2.py3-none-any.whl (43 kB)+ p( p4 ? `- c6 F
|████████████████████████████████| 43 kB 340 kB/s + k# W) s9 X" |3 f2 _. Q) B+ i; h
Collecting oslo.i18n>=3.15.3) g% N) Q8 M0 n% o3 E' N
Downloading http://mirrors.aliyun.com/pypi/packages/4e/a4/e2c71ea714266097b2edc5188462cfc8f0fffd277ef148a33430199b4a0a/oslo.i18n-3.25.1-py2.py3-none-any.whl (47 kB)# G" M' ^; Z9 O: }% T
|████████████████████████████████| 47 kB 338 kB/s ( u' I K+ M; p# H+ x. q
Collecting rfc3986>=1.2.0
4 {7 I+ T b' |/ s Downloading http://mirrors.aliyun.com/pypi/packages/c4/e5/63ca2c4edf4e00657584608bee1001302bbf8c5f569340b78304f2f446cb/rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
/ n9 I& t& f% Y, `Collecting debtcollector>=1.2.0% y' j; F8 ]" `) o
Downloading http://mirrors.aliyun.com/pypi/packages/ca/ab/e34b13877f84a198b043166a82baf0ae8b9ed1daa83b6ebde776e8628b0a/debtcollector-1.22.0-py2.py3-none-any.whl (23 kB)' z V9 U+ b4 |
Requirement 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)" R: l9 o5 r2 c
Collecting pyparsing>=2.1.0: H9 A+ G o j v# c2 |5 Y
Downloading http://mirrors.aliyun.com/pypi/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
" N$ J6 c8 g) n+ } |████████████████████████████████| 67 kB 277 kB/s , u- m/ G: F3 M( Z1 X4 ?$ r
Collecting funcsigs>=1.0.0; python_version == "2.7" or python_version == "2.6"
2 T. {1 n) J. B Downloading http://mirrors.aliyun.com/pypi/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl (17 kB)
* a; M3 c6 D* V! y1 R8 B, TCollecting pytz>=2013.6. e( A7 H% F! s$ j2 A
Downloading http://mirrors.aliyun.com/pypi/packages/60/2e/dec1cc18c51b8df33c7c4d0a321b084cf38e1733b98f9d15018880fb4970/pytz-2022.1-py2.py3-none-any.whl (503 kB)) |) b: B# L0 v
|████████████████████████████████| 503 kB 256 kB/s
+ _( {# C/ r9 t4 Q/ \Collecting iso8601>=0.1.11
4 E' w- Y' {& e. ?4 q Downloading http://mirrors.aliyun.com/pypi/packages/d7/f8/8f315ea8272359d9ae57086581fb4c469be80e6b36bb36583c11bb19e6c4/iso8601-0.1.16-py2.py3-none-any.whl (10 kB)
5 B% [" n' s9 `# S% \9 I" [Collecting netifaces>=0.10.43 W8 I; o# ~. w
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), Y, a1 M. t& j% V
Collecting monotonic>=0.6; python_version < "3.3"
2 K" M: l& t. O+ W- [ Downloading http://mirrors.aliyun.com/pypi/packages/9a/67/7e8406a29b6c45be7af7740456f7f37025f0506ae2e05fb9009a53946860/monotonic-1.6-py2.py3-none-any.whl (8.2 kB)! r" W m9 y# X @3 x4 Z/ h
Collecting importlib-resources; python_version < "3.7"
4 G6 g2 z8 N8 F; _) r Downloading http://mirrors.aliyun.com/pypi/packages/8d/94/2f6ceee0c4e63bff0177c07e68d27c937a19f6bc77c4739755b49f5adb04/importlib_resources-3.3.1-py2.py3-none-any.whl (26 kB)
. u! ]! w) }! z f6 V& o! uRequirement 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)6 y# z) z2 v( x6 \
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)0 l# x" s2 Z5 x+ }. K6 c, k% i/ v
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)
$ u: W' i3 k: A& p& G l ^* LRequirement 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)4 Z+ s" \/ I M3 I& h. g( w& `
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), P" T6 K9 M) L: J
Collecting Babel!=2.4.0,>=2.3.4
; t5 u( y' G/ U, u8 f Downloading http://mirrors.aliyun.com/pypi/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
, x. V) v2 k: z6 _9 f |████████████████████████████████| 8.8 MB 360 kB/s ! c9 K4 h" s1 I4 b
Collecting wrapt>=1.7.00 u- V* x v% H% e
Downloading http://mirrors.aliyun.com/pypi/packages/e6/57/d5673f5201ccbc287e70a574868319267735de3041e496e1e26b48d8f653/wrapt-1.14.1-cp27-cp27mu-manylinux2010_x86_64.whl (75 kB)
7 n6 T/ w6 |4 Z9 l; p( l |████████████████████████████████| 75 kB 354 kB/s
% Y4 m6 E, J# g" _& u/ ]Collecting singledispatch; python_version < "3.4"
) \; e& f9 |# B: `1 R2 V( f0 R Downloading http://mirrors.aliyun.com/pypi/packages/3f/09/2a17c6505a8373229cb3de6161e3af74ff90afcf4516719aa6cf32fad151/singledispatch-3.7.0-py2.py3-none-any.whl (9.2 kB)4 W$ W. i+ G( m p. Z
Collecting zipp>=0.4; python_version < "3.8"
5 {+ {1 t f4 T+ l) T- H Downloading http://mirrors.aliyun.com/pypi/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
: L+ {' @, U# v9 R: {Collecting pathlib2; python_version < "3"
W1 p8 e) i! p: g F& u- Z Downloading http://mirrors.aliyun.com/pypi/packages/09/eb/4af4bcd5b8731366b676192675221c5324394a580dfae469d498313b5c4a/pathlib2-2.3.7.post1-py2.py3-none-any.whl (18 kB)
^3 t5 T* X& S" c8 b* H/ NCollecting contextlib2; python_version < "3"
) M+ w, V l" Y8 M' \% @1 r1 G( w0 e Downloading http://mirrors.aliyun.com/pypi/packages/85/60/370352f7ef6aa96c52fb001831622f50f923c1d575427d021b8ab3311236/contextlib2-0.6.0.post1-py2.py3-none-any.whl (9.8 kB): N% p, x0 o* e
Collecting typing; python_version < "3.5"9 ]8 L! G- O5 n* Y
Downloading http://mirrors.aliyun.com/pypi/packages/0b/cb/da856e81731833b94da70a08712f658416266a5fb2a9d9e426c8061becef/typing-3.10.0.0-py2-none-any.whl (26 kB)
8 [, S0 ]: ] h$ i4 j4 ^% KRequirement 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)2 X. ~8 h3 J3 D
Processing /root/.cache/pip/wheels/06/57/a1/36019a17d0f1e61a90d47d48e777411daf948e7515697c68d5/scandir-1.10.0-cp27-cp27mu-linux_x86_64.whl
1 i' Z: u, @ u C# n' J6 b) ~Building wheels for collected packages: kolla-ansible
& |% F# [* Z9 g% R# c Building wheel for kolla-ansible (setup.py) ... done! P7 @3 m9 z; Q4 `) ^+ U
Created wheel for kolla-ansible: filename=kolla_ansible-6.2.4.dev4-py2-none-any.whl size=971232 sha256=429291fe17b06d2a1c9c6d2d65660ce98d2f90b4595a01aa4ed4c9d29c1e31ab
- J- f- H$ ~+ A$ I1 ~ Stored in directory: /root/.cache/pip/wheels/4e/7c/47/966a2e36513a482219adcbe974aa18381f19f0a87f45d19297, \" |6 d8 _3 n0 Z1 Y; q- q, k
Successfully built kolla-ansible
$ ?& B2 B+ Y0 ]0 F' U! b, eInstalling 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
4 @* |9 f9 J3 M4 w+ r( n Attempting uninstall: MarkupSafe
! p- u$ d' g0 p; ~ Found existing installation: MarkupSafe 0.11
, p0 G$ D' o" U6 K) a# E Uninstalling MarkupSafe-0.11:; e! ?; P$ B8 n9 b! d$ y
Successfully uninstalled MarkupSafe-0.11
2 o: _4 \8 Q, u Attempting uninstall: Jinja2, f2 ~5 V. l7 C7 w7 w& u
Found existing installation: Jinja2 2.7.2
' ?3 F- S6 m& b3 J8 H Uninstalling Jinja2-2.7.2:, v7 |, _( o: F& ?$ M
Successfully uninstalled Jinja2-2.7.2
" e" p) b/ f$ D0 ~$ m Attempting uninstall: Babel( t# I) v4 _8 f; H% @' i
Found existing installation: Babel 0.9.6
; @) w) W, F4 A Uninstalling Babel-0.9.6:
& @# `$ ?) F6 x4 g( L# U5 [ Successfully uninstalled Babel-0.9.6# |, ^* P5 ?+ u% R' p
Attempting uninstall: setuptools
+ h4 q9 V$ i! A% F Found existing installation: setuptools 0.9.8
9 g$ G$ z2 G6 k& L* A/ E6 t Uninstalling setuptools-0.9.8:
5 j3 J7 v# t( B" U% F) u Successfully uninstalled setuptools-0.9.8
) |8 y) q5 E3 S% I3 }8 HSuccessfully 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
8 p* _9 x8 G2 e% j/ g L& Z$ y# r[root@openstack-gnocchi kolla-ansible]# ! _( j0 z6 S/ ^2 ]
|
|