找回密码
 注册
查看: 461|回复: 0

pip 安装mysqlclient报错error: subprocess-exited-with-error × Getting rto build whee

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2026-1-8 09:51:35 | 显示全部楼层 |阅读模式
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.6- f  ^; O% e3 W  \6 E
Collecting mysqlclient==2.2.6
+ a. `& `% u# f, |3 C$ A  Using cached mysqlclient-2.2.6.tar.gz (91 kB)8 {) _* ~7 L; B
  Installing build dependencies ... done
; I- k  A; [1 u* @; @  ~  Getting requirements to build wheel ... error" Q# n  T6 E' S2 L* f
  error: subprocess-exited-with-error
" I' D; f7 |5 ]* r$ B  
8 l& Q7 c2 i( y  r  × Getting requirements to build wheel did not run successfully." N/ E  K+ S# ~  I9 H+ ^; j
  │ exit code: 1
9 U7 P' r0 l% b1 N' |& t2 I  ╰─> [29 lines of output]" {; t9 z+ G8 ?/ k
      Trying pkg-config --exists mysqlclient9 V' Y% b& M  i8 b, B
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.$ {* C9 ~6 F0 g$ X
      Trying pkg-config --exists mariadb6 {6 j0 _' }7 b0 v
      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
2 G* |. y- w) o+ N3 c# u      Trying pkg-config --exists libmariadb
* ~5 K9 d7 I$ B* V      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.& ^5 R4 r* g" A- K: v0 \' P# c
      Trying pkg-config --exists perconaserverclient6 `$ @; B# E0 K/ _4 l( x* A/ ?
      Command 'pkg-config --exists perconaserverclient' returned non-zero exit status 1.
$ P& K! i* U* z- m9 N      Traceback (most recent call last):
$ f4 u) {1 Z8 c        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>" d8 r1 R8 Q( t2 M& G' Y) r' u
          main()2 c1 a. [4 j: S7 c" W8 N
        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
3 w9 Y0 P. d8 T* d          json_out['return_val'] = hook(**hook_input['kwargs']), ]: g2 B7 y" V3 {9 q8 S
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  W' _5 Z' a# _- G5 c& U        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
5 j% E+ e! c5 h" D& J& |          return hook(config_settings)
6 _, [/ A/ q" ?% J4 v& ], l* }+ y, i                 ^^^^^^^^^^^^^^^^^^^^^( }- L* W' F% c0 x/ O5 v
        File "/tmp/pip-build-env-useridpb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
4 {0 W  a( V: v/ y% _+ m* [9 ?# f4 B          return self._get_build_requires(config_settings, requirements=[])# v7 C" I- ]: w% H8 H$ @+ s. Y0 L
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 {+ Z( U% C& i4 |8 R7 }        File "/tmp/pip-build-env-useridpb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires" ?; z# ^7 @7 \  b5 n$ o8 T; ^
          self.run_setup()
: N& k9 l" c# D1 ~* h+ s; p        File "/tmp/pip-build-env-useridpb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
7 L, X7 z4 _& w7 ~* ?          exec(code, locals())5 L) Z' ]+ `9 e7 T' K: L
        File "<string>", line 155, in <module># p. q3 _' P  h% F* s7 c. ], {- c% c4 C
        File "<string>", line 49, in get_config_posix
. j% W# @8 M" e' w* O2 [3 s        File "<string>", line 28, in find_package_name2 A' g8 W$ m: O  a. J3 d$ e; P" L6 Z
      Exception: Can not find valid pkg-config name.7 i% d: J& S% ]
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
, S1 O" K  e7 ?      [end of output]
+ a5 G* Q, H' H0 F  
/ l6 q" K, J; f* Q5 s  note: This error originates from a subprocess, and is likely not a problem with pip.
* a* n3 n0 j3 {9 x' U' [1 s$ ^' u/ y" B8 z0 z
[notice] A new release of pip is available: 24.3.1 -> 25.3
4 z. f& F* g. P6 z[notice] To update, run: pip install --upgrade pip9 ~9 m" s5 v2 [. M' b8 v
error: subprocess-exited-with-error
* p# g3 }- Y; C1 f6 u* z/ G2 k8 z" W* h
× Getting requirements to build wheel did not run successfully.% ]; ^4 R7 X0 E9 J$ ^( v3 X2 ]: r
│ exit code: 1/ j/ y1 v8 s: P0 c% H
╰─> See above for output.9 J4 b/ D# F8 c  N- v
2 V" u. X( {# q9 X' C
note: This error originates from a subprocess, and is likely not a problem with pip.
+ D) m) j5 |5 }8 N$ ?% J' f5 a% y% F' k* u( E3 I
安装失败:) s) y; Y; e( e" X
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.4
/ w- J8 U1 T: ICollecting mysqlclient==2.2.4! g, Q5 q) d* Y! u
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
' }) q5 |" @/ g, U; c* U( _  Installing build dependencies ... done+ \. g1 Z/ j3 B* c5 }; X( A0 x
  Getting requirements to build wheel ... error/ o  y4 k# ]8 o1 K0 S
  error: subprocess-exited-with-error
' W% l+ U/ |, t  
0 X" P) N. h. S" Q% v  × Getting requirements to build wheel did not run successfully.4 [% J+ |% \/ @- e: N5 X5 t# Y
  │ exit code: 1
8 q( q" v9 G# s) a+ V  ╰─> [27 lines of output]( S  d+ @6 r2 ^4 {
      Trying pkg-config --exists mysqlclient5 W- U7 r# O' S- R1 s, `2 }0 |
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.9 z5 Z8 g4 M( Z- {/ N+ @
      Trying pkg-config --exists mariadb
2 }0 w4 k) F9 @8 a7 a, l+ N6 r9 k      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
% B# _" s8 w2 b: F" F      Trying pkg-config --exists libmariadb+ }) E" f5 x) X4 @/ A( @* [3 C, I
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.% d# ~2 w4 Q% b0 y2 H
      Traceback (most recent call last):
$ k/ p6 [4 }7 n6 D' r% v& |        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>1 [5 I6 P: r* E% ]
          main()" G! d/ h) i% @7 `8 j7 {4 h( n" A, H
        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main3 {0 t. L7 c" `8 c
          json_out['return_val'] = hook(**hook_input['kwargs'])0 }5 u5 N9 m- \% ]0 _" O0 z& ?
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
( V, t2 \  b* t: W# M3 f1 c! }6 G- d: f        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
% ~2 q0 D& _9 m( L% W3 B) `          return hook(config_settings)* E6 F) t* W6 R  s1 A( ~
                 ^^^^^^^^^^^^^^^^^^^^^8 O: }: O, z" |- v# z
        File "/tmp/pip-build-env-qutrixi9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
* i2 U% q% Y, j. N" O- m' A          return self._get_build_requires(config_settings, requirements=[])! a9 U1 Y- E+ b' o6 I  g. T
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
; I" m: a% `6 Q: F        File "/tmp/pip-build-env-qutrixi9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
8 q; Z$ s3 f; K& I          self.run_setup()
- c/ g0 {1 D- L0 q        File "/tmp/pip-build-env-qutrixi9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup7 r0 @* H! f1 F3 K
          exec(code, locals())
' n# p& j" V! O. b        File "<string>", line 155, in <module>
/ E; u) @# u# I        File "<string>", line 49, in get_config_posix
+ t$ z& v& `! ~; B        File "<string>", line 28, in find_package_name
& E4 S7 F1 `. V0 A: h% Q      Exception: Can not find valid pkg-config name.$ b) w2 q& q9 h1 x
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
5 L" P4 _# Y$ h( K      [end of output]9 d3 z6 |; b8 ]; y6 e! e
  
2 T5 [7 p/ a6 X( v( z& n  note: This error originates from a subprocess, and is likely not a problem with pip.
; F! b$ u) y+ d( k# j  \
. t4 i  x: l. v, l8 e[notice] A new release of pip is available: 24.3.1 -> 25.3: K0 E; w) d* S
[notice] To update, run: pip install --upgrade pip
( c& X" j4 z! Verror: subprocess-exited-with-error
/ h' W) J/ r& w
+ ^1 Y! X9 A7 |) `, |× Getting requirements to build wheel did not run successfully.
' [/ }6 O4 L, ?6 x/ d│ exit code: 1
8 z' A9 @$ [4 b8 v╰─> See above for output.
  {7 d$ N9 ]# g* \% d" x+ Z3 K) t& h9 M1 m
note: This error originates from a subprocess, and is likely not a problem with pip.# S+ F5 A( g2 k
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.41 l: O6 G: }2 P3 p' x
Collecting mysqlclient==2.2.4
8 Y4 S, J0 x, t+ |  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
4 V$ `" V; t- U  Installing build dependencies ... done
3 T, x- w, K: Z, [  Getting requirements to build wheel ... error
4 ?: o7 E* O1 }- [  error: subprocess-exited-with-error4 k. ^- B0 G  H
  ; q% U: |+ _! z6 V( J! S
  × Getting requirements to build wheel did not run successfully.6 f2 x1 B( A% G+ \. C' n
  │ exit code: 10 ^1 c9 ~# S) ?% y6 Y" d% T
  ╰─> [27 lines of output]
$ f; E6 F8 G2 z! m  Q      Trying pkg-config --exists mysqlclient
- _2 g2 {( U+ t' J      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
( Q& l9 U# {" ^! G; r  ~% G8 K  G      Trying pkg-config --exists mariadb
/ S3 X9 B# l; s& L      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
, Y1 j* [2 d$ h      Trying pkg-config --exists libmariadb0 l3 z7 w1 @! f) y  |
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.
- d' `( m  @" n# J. X8 ^4 d$ D      Traceback (most recent call last):
- t" U, g' {" N# {: j2 U0 U        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
  A, B# X6 Y% x          main()# l- u& H# y8 c
        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main4 r! G$ p% u5 k/ k5 `! W
          json_out['return_val'] = hook(**hook_input['kwargs'])
* O7 R9 Y! P; U  x1 g* }                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 W- S* e. w4 S; {        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel, z# G  Z$ m) H8 C" |
          return hook(config_settings)* M/ n- z2 g7 F
                 ^^^^^^^^^^^^^^^^^^^^^
- p& I, d; B; S9 T2 C3 U        File "/tmp/pip-build-env-l5wcrzu8/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
. `1 g" G. t% F) s: f  o% P" S* g          return self._get_build_requires(config_settings, requirements=[])
! R1 a: F0 w8 L: g! o                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" x# Z8 o; D( A2 j, O        File "/tmp/pip-build-env-l5wcrzu8/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
5 k5 f2 Q4 v. y* Y          self.run_setup()
3 S; D  y* f! o- Q1 ~/ R2 E$ h        File "/tmp/pip-build-env-l5wcrzu8/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup0 g5 g, u2 @6 Q
          exec(code, locals())
; l+ r" a6 J3 O9 v        File "<string>", line 155, in <module>
1 N* Y& r" x# \        File "<string>", line 49, in get_config_posix
4 C4 b8 Y2 o4 Z0 r        File "<string>", line 28, in find_package_name  g0 ]8 A4 ^+ k3 c
      Exception: Can not find valid pkg-config name.
) f8 O0 m. \! `3 ^; _3 q" W1 K      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually) ?" N0 n2 E: ?5 {+ T$ v2 F2 U
      [end of output]8 a# b# y$ \2 h
  : ^! h; ~" o, e, x3 [  |5 c5 g7 x
  note: This error originates from a subprocess, and is likely not a problem with pip.
" g# Y' e! n4 c, m$ {/ K8 K
% b, c8 F. P2 ?; w% r" s[notice] A new release of pip is available: 24.3.1 -> 25.3
6 c4 K, D. X' T# Y1 E1 F* a; S[notice] To update, run: pip install --upgrade pip' z* b: x8 N/ [% d7 e
error: subprocess-exited-with-error: O; h8 [6 H9 H1 U
3 ]% j3 d8 q' }, |8 c
× Getting requirements to build wheel did not run successfully.
: [1 y- ~' P3 f$ f- X4 _7 o% |│ exit code: 1; y; X! F- L- v0 P+ b, k
╰─> See above for output.& q: p# k, o$ o4 P
& O$ k/ |8 m( ^6 [' h8 }/ n, {
note: This error originates from a subprocess, and is likely not a problem with pip.
( `3 Z1 n' e# q# W8 ]1 K' O% Z3 ]7 b, ]+ ^. S
升级pip组件:% \; D/ p! @3 \  w0 m& E9 ^

4 w6 L, D; e+ N6 G) Q- _(.venv) [root@controller hcis_manager_portal]# pip install --upgrade pip==25.0.0" \" q$ x4 N* a* x  n  D
Collecting pip==25.0.04 j/ U2 W; |9 L
  Downloading pip-25.0-py3-none-any.whl.metadata (3.7 kB)8 @$ H# N& w: |. r3 U" {
Downloading pip-25.0-py3-none-any.whl (1.8 MB)
  h0 U# s" y4 u6 v) G   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 30.2 kB/s eta 0:00:00" C6 v. w4 T4 U
Installing collected packages: pip
; Q  \; c' _' G( [6 a  Attempting uninstall: pip
8 m4 m" v( R' o) c' K0 N2 {1 L3 O  g    Found existing installation: pip 24.3.1
$ y6 x! l* D2 Z  R+ ]0 N  z7 P" ^    Uninstalling pip-24.3.1:
" e" X) p# d' a: _6 r, ^      Successfully uninstalled pip-24.3.1
2 R8 r7 I* l9 y+ r1 m+ D/ HSuccessfully installed pip-25.0( [4 j/ W/ v& ~3 Q3 z
( ]2 T" K7 R0 z7 ]
[notice] A new release of pip is available: 25.0 -> 25.3
2 y% H. F$ z0 b[notice] To update, run: pip install --upgrade pip( w% Z6 R( ]& ~/ z% G) e
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.4( O  v+ c3 f/ f6 \" E
Collecting mysqlclient==2.2.46 h+ |' K+ W9 r/ @8 M; n
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
1 E. G" g5 S5 z  Installing build dependencies ... done
% o8 z+ j: V* H8 h) L4 l" g  Getting requirements to build wheel ... error; Y! U6 \7 n4 ]7 M/ s7 ^$ w& K2 y
  error: subprocess-exited-with-error
. }# n: D" b: Q$ K3 w  
" f6 K3 G9 I+ S+ Y& R  × Getting requirements to build wheel did not run successfully.( N4 G5 N3 g  w
  │ exit code: 1
2 I! w5 r9 b# }3 f, W3 }" G! s  ╰─> [27 lines of output]7 r  {$ k6 R0 A7 k6 J
      Trying pkg-config --exists mysqlclient3 p  |1 B; Z9 F* Q) j( x" X. b5 Y0 C( S
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.. z& S# ?/ n3 p3 B5 f' ]# d
      Trying pkg-config --exists mariadb* U+ H  M! v4 U2 S1 b' S" Z
      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
* @: h8 Q4 b% k/ E' i! f      Trying pkg-config --exists libmariadb, V9 P% D: a/ \8 Q1 L' l
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.) b( q" D1 t) u( m
      Traceback (most recent call last):
' ]" K, _7 X1 _! k7 A) f        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
' z- i- ~/ T" b1 M          main()7 i8 T. E4 w7 v& S2 F
        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main  R5 f: C& K1 f6 o" e1 c8 y% Y
          json_out["return_val"] = hook(**hook_input["kwargs"])0 ~- K( n1 E4 r4 U, L1 O5 j9 K
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^+ T) J/ c5 W1 q& e* t. ]
        File "/usr/local/python_projects/DjangoProject/hcis_manager_portal/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel8 m* R. @6 M1 U! J! G6 I- {
          return hook(config_settings)0 |3 q) ~) V3 h, l% w3 a; Z
                 ^^^^^^^^^^^^^^^^^^^^^! r, \7 r5 J# |/ y, m: p
        File "/tmp/pip-build-env-i0x30et5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel( X2 N* E8 s$ O7 f4 ]: ~) g
          return self._get_build_requires(config_settings, requirements=[]). d7 u: i. r0 U5 |
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^8 r7 X$ e( x# r
        File "/tmp/pip-build-env-i0x30et5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
) p/ `1 U/ w( C/ I) X( r/ \4 R3 z          self.run_setup()
+ e: e* a2 `- `5 Z7 n: S" O2 [        File "/tmp/pip-build-env-i0x30et5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup9 _: C4 L8 A: \+ u4 X3 u' t
          exec(code, locals())" p( E& {/ L4 O# X/ W" w
        File "<string>", line 155, in <module>
- ]) Z/ M/ y4 Q        File "<string>", line 49, in get_config_posix2 }* \3 r4 a3 e) e! v% i' u
        File "<string>", line 28, in find_package_name2 a+ D& R! o# L- e. Y" X* N
      Exception: Can not find valid pkg-config name.% L: Q3 M7 n! S; t
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
* f, @, d# h- Q% \5 s      [end of output]
' ~  b* }, s: a- n  9 L+ {9 N/ }& x1 r$ c; C3 g
  note: This error originates from a subprocess, and is likely not a problem with pip.
8 g1 B8 ?! @+ T# |2 j7 |: Y4 O' {, x  V4 N3 `4 Z# m
[notice] A new release of pip is available: 25.0 -> 25.3; t8 G6 T1 l: O
[notice] To update, run: pip install --upgrade pip* j+ b, A- A: C, k" K  l
error: subprocess-exited-with-error3 d1 o4 ?4 c" P" ]8 F
, v/ r: n$ H# ^
× Getting requirements to build wheel did not run successfully.  E% T5 X* O) Q8 q0 c* E9 \4 n
│ exit code: 16 L4 R' |. N, O" L
╰─> See above for output.0 b$ E# D+ Y$ z7 O* G4 n

& s: I$ e. T. X; i! n: i$ U& @8 Mnote: This error originates from a subprocess, and is likely not a problem with pip.
: T2 a$ R9 _9 J: ^' m(.venv) [root@controller hcis_manager_portal]#
' V6 N. G) o2 U  x3 r( X% H, L  {(.venv) [root@controller hcis_manager_portal]#
$ c  i/ P7 ~) E, i9 z2 E(.venv) [root@controller hcis_manager_portal]# 2 M/ l+ h* s' \" K
(.venv) [root@controller hcis_manager_portal]#1 Q# ~  P: @, V8 D2 r% Z
) D4 E; o. i) D! |
安装相关组件包:
) F( e. X1 w4 M* }* j! F' C4 ~( E(.venv) [root@controller hcis_manager_portal]# dnf install -y gcc python3-devel mariadb-connector-c-devel pkg-config ) M: v- _  ~2 M1 k; Q7 S
Last metadata expiration check: 0:05:33 ago on Thu 08 Jan 2026 09:43:40 AM CST.
3 F" g; \' U; p/ k- }' r- ]7 A; BPackage gcc-12.3.1-81.oe2503.x86_64 is already installed.
) X5 w, ~: j2 J, Y- q1 S+ C( q6 yPackage pkgconf-2.3.0-1.oe2503.x86_64 is already installed.4 G8 x( P* C1 ^
Dependencies resolved.
; _# B1 p2 {/ H9 e==================================================================================================================================================================$ a: D8 p9 X! ^! g9 n. Q- w( j$ m
Package                                            Architecture                    Version                                     Repository                   Size
, C( y9 H: C% q2 y==================================================================================================================================================================
/ }, \( r+ f5 `, GInstalling:3 X( z, N8 g1 D7 Q7 a9 ?- Z; F4 @
mariadb-connector-c-devel                          x86_64                          3.4.3-1.oe2503                              OS                          146 k
$ I, e, @, U" R2 d! u python3-devel                                      x86_64                          3.11.11-3.oe2503                            OS                           17 M
9 i9 z$ [- q, B$ R9 u% IInstalling dependencies:
0 z( [6 l  G0 v3 \; p python3-rpm-generators                             noarch                          9-5.oe2503                                  OS                           21 k3 H1 c! |* @1 T+ D* b5 }

4 `6 V+ B3 S7 c3 P% u0 OTransaction Summary! h% ~$ v3 P6 p/ I( |
==================================================================================================================================================================
9 c3 ^- b- t& S) qInstall  3 Packages
3 K- D' E$ U$ h; c4 Z2 p! n
; A: n9 ^+ {, t6 ~" i1 w! NTotal size: 17 M. s8 b) x7 P/ i
Total download size: 146 k
7 o( z; z6 f$ z; [Installed size: 106 M$ d6 h/ z. z2 J: b1 Z- O9 a- [
Downloading Packages:5 f. E; w$ G1 ~" T; X
[SKIPPED] python3-devel-3.11.11-3.oe2503.x86_64.rpm: Already downloaded                                                                                          9 q# V; j' {2 B& ~
[SKIPPED] python3-rpm-generators-9-5.oe2503.noarch.rpm: Already downloaded                                                                                       
) X  `% k% O" ]' e1 t  C& ^(3/3): mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64.rpm                                                                        268 kB/s | 146 kB     00:00   
, t; K* a2 v$ ^& P8 g7 f8 ?* ?------------------------------------------------------------------------------------------------------------------------------------------------------------------" `# ]" t9 R+ ]3 t* |$ ^
Total                                                                                                                             190 kB/s | 146 kB     00:00     $ K& ?4 ?" y6 a
Running transaction check- Q1 k* a0 U2 c; o+ ?1 z$ c" Z
Transaction check succeeded.
5 G' f5 y4 C' _" W$ t+ B% x# u$ ZRunning transaction test5 g* W+ t' j3 V$ F
Transaction test succeeded.* v+ ~8 m3 x0 `, A# |" `
Running transaction2 `8 b  \  [$ a! @/ [
  Preparing        :                                                                                                                                          1/1
. P  Z9 k/ |9 z) f+ p% T* o  Installing       : python3-rpm-generators-9-5.oe2503.noarch                                                                                                 1/3 ( {3 f4 b0 n  d( [& \! h4 k: }
  Installing       : python3-devel-3.11.11-3.oe2503.x86_64                                                                                                    2/3
7 _( o; b! b* J$ o: f  Installing       : mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64                                                                                          3/3
( ?4 K0 b* A6 S+ w( ]' F  Running scriptlet: mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64                                                                                          3/3
5 c" q7 s' {. J5 I" I9 Q  Verifying        : mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64                                                                                          1/3
( }# Z& c  e6 x) G: m& L  Verifying        : python3-devel-3.11.11-3.oe2503.x86_64                                                                                                    2/3 : g+ F( I, A. F$ P/ d) B. l
  Verifying        : python3-rpm-generators-9-5.oe2503.noarch                                                                                                 3/3
- a9 h1 ?/ A4 K6 H: k$ i2 o# Q8 R- P# t, F% L
Installed:# p9 ~' o( ~+ u1 Q2 ~5 L$ @
  mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64            python3-devel-3.11.11-3.oe2503.x86_64            python3-rpm-generators-9-5.oe2503.noarch           
. b. y* f0 b5 r, r' Q! J0 z3 x% ^* ~1 o. D+ ?( [- m7 P
Complete!
1 w. Z: t( L1 S0 F( O8 q) ^7 k. C6 {# `; @  g' v) u  S
再次安装:
. O0 o, J* v/ T' `  g  ~8 I(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.4! y8 c" D2 o' h
Collecting mysqlclient==2.2.4
+ N$ X+ [, _' v8 E; i9 p  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
1 P$ d+ K/ P$ j! M/ L5 n4 z  Installing build dependencies ... done
0 E. c; F+ m8 o) h- M' `7 a( R) k  Getting requirements to build wheel ... done1 u; x# J6 }+ G' X# F, Y
  Preparing metadata (pyproject.toml) ... done2 N; R( N# n3 {4 A3 W
Building wheels for collected packages: mysqlclient+ e: g' A5 N0 Z% a
  Building wheel for mysqlclient (pyproject.toml) ... done2 v5 X* x3 S" h4 ?% o# {
  Created wheel for mysqlclient: filename=mysqlclient-2.2.4-cp311-cp311-linux_x86_64.whl size=79781 sha256=f28c5635af2009e45164e218fa8bb37b32ba06d451dd9a08766a7e91c1c4252b" }' u* N" o5 O, s
  Stored in directory: /root/.cache/pip/wheels/1e/2f/4c/0bd8be7e2f3255f9436ce68bb1c2563661e8b7bbd49dcff0e0! k7 a- h& k, s+ Z+ V  d1 |2 }0 E
Successfully built mysqlclient
6 Z, Q$ c0 ]3 V' Z4 \- }0 |Installing collected packages: mysqlclient! L7 T4 q2 V6 ?5 x- O3 `' k
  Attempting uninstall: mysqlclient# m/ l  s& `7 ^9 X+ `
    Found existing installation: mysqlclient 2.2.0: k& o4 o2 H, I2 U5 \) a" [1 O
    Uninstalling mysqlclient-2.2.0:& A4 ]2 o  [% j# X) D
      Successfully uninstalled mysqlclient-2.2.0- N7 e/ C8 O: q* ?% a2 C
Successfully installed mysqlclient-2.2.4
# x, p" g( v$ ~% x8 b  n9 t, k" I: m$ Y8 p
[notice] A new release of pip is available: 25.0 -> 25.3
' @1 P3 q2 I: {) q1 O: l[notice] To update, run: pip install --upgrade pip
' y& f* g( j% \2 m6 w& M9 R! i# X
0 g' N9 X0 Z( c7 L" Q6 E成功安装。& K3 p* u, \. W$ ]$ x
$ l* p' L9 D# t: g! A" \& x8 B' B6 e
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.6) r! f7 h! v+ |2 k- q* G
Collecting mysqlclient==2.2.6
# M  [, L. W5 K0 F  Using cached mysqlclient-2.2.6.tar.gz (91 kB)6 T9 O* K* ^% C0 ]* y
  Installing build dependencies ... done) ]  V/ `, B8 U" K6 s4 R
  Getting requirements to build wheel ... done
2 t9 v2 O0 f/ l9 P  Preparing metadata (pyproject.toml) ... done
2 Q" c5 n5 q8 Z( s/ DBuilding wheels for collected packages: mysqlclient
0 r; Q' J1 Z5 P& Z  Building wheel for mysqlclient (pyproject.toml) ... done/ a, Z8 Z6 P! |# I
  Created wheel for mysqlclient: filename=mysqlclient-2.2.6-cp311-cp311-linux_x86_64.whl size=80153 sha256=d3621a4c2733d18e78583c9a0558c81a653db240080c03deae38e2d7fa8bbe7b
+ h. p3 x" I* r& k8 x+ b& o  Stored in directory: /root/.cache/pip/wheels/7f/f3/9e/f1b8d41481e49d3d5381db6846c88637d253014786c15eb299
, l8 h! _' S& K* m( @: YSuccessfully built mysqlclient
( ^* H9 z. K$ {4 iInstalling collected packages: mysqlclient) I) P6 D5 K) e' j* |+ R7 {
  Attempting uninstall: mysqlclient
6 s4 n" s# v7 X, M) y    Found existing installation: mysqlclient 2.2.4) T# _  A: |. J
    Uninstalling mysqlclient-2.2.4:
3 K8 n" \4 d4 b) V/ ]      Successfully uninstalled mysqlclient-2.2.4
2 u1 G- J. d6 x0 R( [* w) tSuccessfully installed mysqlclient-2.2.6! |3 G' {" Z9 J7 `5 l; W( M

6 b$ \% R6 p5 O4 W8 H" B+ R" Y[notice] A new release of pip is available: 25.0 -> 25.32 A, s7 w/ m$ E' q
[notice] To update, run: pip install --upgrade pip" k2 a: W9 T, E2 N

! t8 U6 g. n" i+ F' g. H
4 @# X( o( B6 X5 |; d成功升级。' }) s7 I1 l+ L2 M* D+ j. F* F
完成安装。/ l7 ?& H5 ~1 x. s1 y  L
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:32 , Processed in 0.022212 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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