易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 354|回复: 0
收起左侧

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

[复制链接]
发表于 2026-1-8 09:51:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.6
  b" k3 e5 J& \) Z$ F+ A/ ~Collecting mysqlclient==2.2.6
% N; ?: ~3 j* c4 Q$ t) {  Using cached mysqlclient-2.2.6.tar.gz (91 kB)
5 s" Y1 J  K0 A, l, t& y2 ?  Installing build dependencies ... done' X& B+ b) S; \& C
  Getting requirements to build wheel ... error; R! D  R3 e$ ?0 c- ]( p
  error: subprocess-exited-with-error
9 G6 X- m+ O0 J  
8 k; S8 w! E  H; X# c  × Getting requirements to build wheel did not run successfully.7 e0 `4 q2 f/ e- Q; m, J
  │ exit code: 1$ c+ a2 g) a( y$ V' |
  ╰─> [29 lines of output]
/ ?5 e* v/ K2 W3 C+ ]      Trying pkg-config --exists mysqlclient
9 @. p0 P* \6 W      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.: v# e0 l9 G, w2 p* q# h& Q8 {
      Trying pkg-config --exists mariadb
$ D! J" o' t- j( u5 Z+ s      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
( X, }2 p/ [  v/ k" W0 ~      Trying pkg-config --exists libmariadb
1 N( T% A3 ]: _9 `      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.( w7 h" q" [6 ^6 X2 M2 x9 L4 ]
      Trying pkg-config --exists perconaserverclient2 w/ W* c: P9 f( U
      Command 'pkg-config --exists perconaserverclient' returned non-zero exit status 1.: p0 p3 C) J4 W0 f. ?7 ~7 Z
      Traceback (most recent call last):4 e8 R2 E" ]( I4 ]* @
        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>$ l+ A3 I0 I  a$ m. _& l3 m
          main()
9 a/ T) r' P- ]4 U3 k        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: M# T' v6 a) f* G2 i  c
          json_out['return_val'] = hook(**hook_input['kwargs'])) ^2 _1 C- ]( ?4 X  M
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^% s. C+ |! ^- o0 x; g( s& Z
        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
! O; p- e6 L3 i. O          return hook(config_settings)
9 j! ?: F5 x5 B$ @5 U/ a. x2 [  N4 U                 ^^^^^^^^^^^^^^^^^^^^^; _6 A8 |  L9 h- }  F3 M6 C
        File "/tmp/pip-build-env-useridpb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
: A2 q1 H/ i. S7 o/ ], F          return self._get_build_requires(config_settings, requirements=[])) g4 X* `/ K! }! Q+ q
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/ G5 a) y8 x8 {( M        File "/tmp/pip-build-env-useridpb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires& W/ T4 R2 L5 ~9 Y  Z& _# D
          self.run_setup()
$ s; m. f- g9 ~        File "/tmp/pip-build-env-useridpb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
2 V/ w: L1 ?8 I1 x          exec(code, locals())$ m8 w; u8 Y7 M- U- a. I
        File "<string>", line 155, in <module>
  l) K# [( f6 y. _& O        File "<string>", line 49, in get_config_posix
. V. \3 V  U/ y- R; c* z, e        File "<string>", line 28, in find_package_name
1 }5 Q1 b$ l7 c+ I$ b      Exception: Can not find valid pkg-config name.
4 u- k5 ?7 H- ?; y; j' g4 q      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually( ?; g" V9 q6 o& B" y3 P
      [end of output]/ a" o1 M! ?& |  X% ]( ]( V# e
  " x) n; R  X3 |9 L
  note: This error originates from a subprocess, and is likely not a problem with pip.
5 F/ m% W! d' ^( N) V, m2 C  l, ]( |: |# k2 o
[notice] A new release of pip is available: 24.3.1 -> 25.33 c' Q) b4 s( N; @; h" c) f1 u
[notice] To update, run: pip install --upgrade pip" x/ t. |* J4 s4 }0 `  H( R2 P
error: subprocess-exited-with-error# t8 |, ^) {+ A- X0 v; a
1 v0 f+ w& `9 U! @+ O. s
× Getting requirements to build wheel did not run successfully.
$ P7 X0 M( O6 }4 ^4 d; k; B│ exit code: 1
. X8 B8 v, J$ E2 B$ d╰─> See above for output.) _* i' f% Y" K. z; y0 d6 F

, @  v& \  Q4 Ynote: This error originates from a subprocess, and is likely not a problem with pip.
" j* ^7 e" }7 F2 h# X
; d$ h% \% ?5 \9 Q# B9 `( y( [安装失败:( C) w3 t$ V& N" @- Q1 V. q3 k1 W
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.44 d, [( X0 g0 P- b4 E% V
Collecting mysqlclient==2.2.47 Z+ T- O% l- B2 W# B5 H5 T1 U
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
: k5 P- u  [& N. t4 |- p3 w/ e  Installing build dependencies ... done
/ w6 V( h! ?  ?/ H7 P  Getting requirements to build wheel ... error2 s4 e% u. Z: O) [! V0 q
  error: subprocess-exited-with-error
# f0 x- ]8 b- V" D* V5 p  
. f: ^! e* D# I( R3 B5 O  × Getting requirements to build wheel did not run successfully.
: @8 F  o" [; }8 D# K  │ exit code: 1
# d) Q6 N9 V5 Q/ S" f  ╰─> [27 lines of output]
0 d2 D7 O" a/ U# e9 H  x      Trying pkg-config --exists mysqlclient
# J' G9 ?5 T9 L: J$ g8 C0 c      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
$ ^* n/ U8 a4 }6 L* G8 I$ q      Trying pkg-config --exists mariadb
. b9 j! d7 f, u1 R$ ?      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
$ M+ G) g7 _$ h* [) T      Trying pkg-config --exists libmariadb8 [0 I, g  P6 p1 K- B0 [$ U: R
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.7 O$ H, q4 B) ^$ S$ q
      Traceback (most recent call last):* c8 z7 ?9 u8 Z# m4 h" ?- K/ ~
        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>
  @; y5 `. d# x& c7 {7 q6 L3 ~; B          main()8 Y+ G/ n. h+ v9 p
        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
& T  x  }& @1 g6 ^# w% K          json_out['return_val'] = hook(**hook_input['kwargs'])+ m+ M+ Z" W' ?6 v8 X  Z
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^$ ~* N. `* ^0 b1 }5 {$ u7 m* m
        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, T0 U/ z# e, o8 w8 X# H4 J/ O# G
          return hook(config_settings)
0 Y" k8 @( M, F+ B3 L                 ^^^^^^^^^^^^^^^^^^^^^; y* E7 Q6 B7 z' 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
. h6 N% Q4 {. s3 o( {$ |; ^          return self._get_build_requires(config_settings, requirements=[])1 \; h2 X) [0 W& q- _
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+ _  s) B0 C) @) L) M2 C2 ]
        File "/tmp/pip-build-env-qutrixi9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
& ~5 V! p* ^# }5 z0 Z  R          self.run_setup()
. [  U- T0 I3 `$ J* f. M7 }- y9 {        File "/tmp/pip-build-env-qutrixi9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup0 _5 i( N3 N; v; E, Q( |$ a
          exec(code, locals())
' {* ?3 g, V1 k/ \        File "<string>", line 155, in <module>7 E4 i1 r% C, Y1 x9 z3 f+ i
        File "<string>", line 49, in get_config_posix5 t1 [3 F- C2 Z6 z& y! f. ^  X9 N
        File "<string>", line 28, in find_package_name
* s7 a9 a  A$ |9 X; F0 Q      Exception: Can not find valid pkg-config name., ^2 D& s5 Q5 l) a; Y" q
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
# f; o5 _9 b/ M$ R3 ~4 n      [end of output]3 Q3 q1 }$ Q2 r8 c$ _. i
  
) z& |, c- M/ ~7 V/ S  note: This error originates from a subprocess, and is likely not a problem with pip.4 _9 l+ c& m" f# e# `7 n

. E+ ~& q' {+ \" l[notice] A new release of pip is available: 24.3.1 -> 25.3; `2 _$ o/ D6 Z8 Z' a
[notice] To update, run: pip install --upgrade pip
" X/ k9 W& p, K+ [: terror: subprocess-exited-with-error8 b" Q! b: n9 r

5 w3 G+ ?+ U- e$ @  L9 B" [5 Q× Getting requirements to build wheel did not run successfully.  O: O  o) ]+ Z, o! w9 E8 I, T
│ exit code: 1
. }: b* [4 |% g& j' Y4 u" i╰─> See above for output.8 u0 B6 J! l' B( m" M: Y5 k
1 J2 M. g# f6 V
note: This error originates from a subprocess, and is likely not a problem with pip.  Q% a4 o0 B% J+ M
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.4
! R6 K3 i* e2 a, s. HCollecting mysqlclient==2.2.4
$ P4 J, w9 h- R" u; S  Using cached mysqlclient-2.2.4.tar.gz (90 kB)+ [! o8 v" e0 m2 y( k
  Installing build dependencies ... done* ^7 w0 M8 w/ O8 i! ~
  Getting requirements to build wheel ... error9 |1 i9 Y, E$ W; o
  error: subprocess-exited-with-error
& [; n: ~' P9 i: _9 ~% c  
8 ~) Y4 J& F- `! m+ T4 V  × Getting requirements to build wheel did not run successfully.- s% o) y) S2 r5 P) H' s6 C
  │ exit code: 1
9 }/ w: V- e3 c! c+ g  ╰─> [27 lines of output]& F, Z9 G' J6 ]- T
      Trying pkg-config --exists mysqlclient
3 }% C3 c1 v9 i- ^      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
! D& `7 H1 L. N1 _7 N      Trying pkg-config --exists mariadb
, C! i" x( p  V; o7 A0 V* O      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.' y: y0 S: J8 ^/ t4 g4 a
      Trying pkg-config --exists libmariadb
4 ]# J5 R1 a, x2 |      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.+ J8 i2 P* O& G2 `! l
      Traceback (most recent call last):# Q- K, s8 S) ]1 G
        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>* O0 }, W$ W0 M3 E. \
          main()
4 k0 J! B1 f+ v& U0 x        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: @8 e. y/ m# `4 H/ {  d- n2 B$ W
          json_out['return_val'] = hook(**hook_input['kwargs'])
+ J8 n  P; }' y; {+ P                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ g# O+ {4 b3 C- O        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
( L* t( g3 z" D' f) }          return hook(config_settings)
! w" K/ T; \( N% h! |7 h                 ^^^^^^^^^^^^^^^^^^^^^
2 F9 m+ b2 \. e, P; \$ P4 R0 B$ |        File "/tmp/pip-build-env-l5wcrzu8/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel6 k4 J; L/ t6 l! d7 s7 w
          return self._get_build_requires(config_settings, requirements=[])& K$ |1 U/ u4 F+ P2 L6 o2 v
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^* ^' z% u( z, B4 u
        File "/tmp/pip-build-env-l5wcrzu8/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires  o: ?4 G* Y! i( ?9 G
          self.run_setup()
) m2 w: `7 R% K6 Z. q. ]        File "/tmp/pip-build-env-l5wcrzu8/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup6 h/ ~3 Y% g% ^! s
          exec(code, locals())7 ?0 ~) }( G  A% W0 g2 c. ?
        File "<string>", line 155, in <module>$ x4 Y% n0 R# I( x6 @2 l
        File "<string>", line 49, in get_config_posix  m9 Y$ O8 A8 n& l8 B4 [8 {
        File "<string>", line 28, in find_package_name
" U5 A) \( s! t& v; i8 l0 {      Exception: Can not find valid pkg-config name.
( I4 g! f/ n' i* S5 C2 F, I      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
. U) v! N: z8 x      [end of output]% x$ Q  d6 O$ g
  # ~( k1 O# y5 |5 V& A) \' U
  note: This error originates from a subprocess, and is likely not a problem with pip.+ q0 @/ \% F. E- b9 p/ Q0 m
# J8 Q& n1 l+ _* w$ }! a
[notice] A new release of pip is available: 24.3.1 -> 25.33 i4 R1 g, N2 g' A& c  w3 G, \
[notice] To update, run: pip install --upgrade pip
' g  G3 _9 a& M7 xerror: subprocess-exited-with-error
! R/ y+ ?& ?9 F& o
9 O0 j5 i6 ?8 t0 h× Getting requirements to build wheel did not run successfully.- g$ r) X3 u6 H; B$ f( {7 M
│ exit code: 1  ~% @  j1 f! s
╰─> See above for output.5 ?6 ~- Y, L% A$ W' k) X
) E: Q6 |3 O9 p
note: This error originates from a subprocess, and is likely not a problem with pip.
7 i" `; G* O) b  V" y/ n
1 t1 M' O) H, ?  Q升级pip组件:* u! c9 y; `) X9 @1 f% P

% \  F# Q6 e7 q" |(.venv) [root@controller hcis_manager_portal]# pip install --upgrade pip==25.0.09 T8 G' M8 C+ b. \2 {. F3 @. T
Collecting pip==25.0.0
: j/ B2 X  I+ M( V0 c  Downloading pip-25.0-py3-none-any.whl.metadata (3.7 kB)
! d7 L  t( f* M# P) Y6 c$ ZDownloading pip-25.0-py3-none-any.whl (1.8 MB)8 g8 c/ _& o+ |
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 30.2 kB/s eta 0:00:00
- \9 W- D+ m& BInstalling collected packages: pip
4 z3 s# ~* N6 \) m( ?5 a' t  Attempting uninstall: pip
, M& ?5 Z0 l8 V. v1 `    Found existing installation: pip 24.3.15 O$ x0 _1 i9 q* o, z
    Uninstalling pip-24.3.1:! a7 v: A' O0 D& D
      Successfully uninstalled pip-24.3.15 l/ \9 \, J! {5 z. }2 \) \
Successfully installed pip-25.0$ ^# K9 O0 ~4 {" U" [2 n

  p  C/ R! {. H( x. {! q[notice] A new release of pip is available: 25.0 -> 25.3, L$ n( F) o3 H% _
[notice] To update, run: pip install --upgrade pip
7 O4 U8 p, a( U! P/ p& q: T(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.4  S' |" C$ M, `) N
Collecting mysqlclient==2.2.49 q0 H! H  I2 C; F1 M$ `2 b- t
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
% w8 M% N' L  H7 W$ z' k  Installing build dependencies ... done! z" o1 a1 E, d5 e' m
  Getting requirements to build wheel ... error3 z0 c% R' l8 |
  error: subprocess-exited-with-error: Q1 k9 e/ r. V, I  J' D
  . U; N. s1 C$ l4 C" ]: H5 |/ O
  × Getting requirements to build wheel did not run successfully.
9 m5 h% U+ @" R; j; G& B1 r  │ exit code: 1
0 N' s. D* K8 L+ T; g5 l0 Y) `  ╰─> [27 lines of output]
# n4 q5 @( O; X3 F3 O1 Q0 r      Trying pkg-config --exists mysqlclient
9 x. `, i) o6 y6 L4 H      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.* s" e8 E. ]( f* |
      Trying pkg-config --exists mariadb1 s$ g2 z/ K- G3 `8 ?) S" |" r& A
      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
; N' F6 R" R1 l3 D      Trying pkg-config --exists libmariadb- p  S+ y$ x$ D0 d
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.: D2 [8 L2 I" V& b: N" Q' E1 d" D2 v
      Traceback (most recent call last):
8 F7 d# h8 r/ Z" P9 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 389, in <module>
  ?, _' H, t& u8 K+ M+ n; ]% U          main()
5 _, }9 y, {0 o  C& m2 [$ ^        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
. S  ~2 M5 v0 S          json_out["return_val"] = hook(**hook_input["kwargs"])  w; I4 @, g# ~. I* D7 X( c
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^2 W, W+ k; C( W0 [8 {8 P' 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 143, in get_requires_for_build_wheel
# a# _! a" }' Y/ E8 v1 s, n          return hook(config_settings)
7 I/ _9 h  e6 l. k                 ^^^^^^^^^^^^^^^^^^^^^
$ w( r% c, k# W3 c0 `" {& b; E        File "/tmp/pip-build-env-i0x30et5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel1 V5 `5 m+ Y* F0 ?& y( e1 _7 _( S5 ?
          return self._get_build_requires(config_settings, requirements=[])' l8 T6 S/ r, E3 {' s7 H
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
, L9 B$ [" F! T% Q$ j2 m% q/ [        File "/tmp/pip-build-env-i0x30et5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
  ]4 S* H; @+ J          self.run_setup()
6 x: _; ]( n( R' \% d- |  Y/ p, P        File "/tmp/pip-build-env-i0x30et5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup5 P/ L# R0 z: |0 }0 g, @$ c9 H, J
          exec(code, locals())+ O: x8 Q" y/ m! f1 S( P+ U
        File "<string>", line 155, in <module>/ W1 t. g8 `1 P1 _# f/ D( c
        File "<string>", line 49, in get_config_posix& o& k$ K6 f4 o
        File "<string>", line 28, in find_package_name
  a. e2 p4 h1 x8 E      Exception: Can not find valid pkg-config name.
$ H9 G2 p5 o' c2 \. }      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually* x" R) G4 d! i( {; q2 T1 _
      [end of output]$ `. Z4 \1 }4 @! k. h# m% n
  
1 y: ]7 W' O$ ?0 k% |: z6 u  note: This error originates from a subprocess, and is likely not a problem with pip.
3 A, T1 o& i( H9 k2 |/ p. }  h' V& [4 _9 w8 q
[notice] A new release of pip is available: 25.0 -> 25.37 r- r- T! Q; j- s9 K/ P, Y9 F
[notice] To update, run: pip install --upgrade pip- |0 u; P& E. j, F/ @
error: subprocess-exited-with-error
! X5 M7 m* ]0 b- F: Z% c7 U# m/ w7 A) `
× Getting requirements to build wheel did not run successfully.8 R: o2 _7 \) Z5 _
│ exit code: 1
4 z" n& L' {( o3 N+ R! G╰─> See above for output.
9 T: R6 G! u8 n! C8 R- ^' G
. A' M/ {' _+ G/ m) i3 A4 g5 Znote: This error originates from a subprocess, and is likely not a problem with pip./ M, n( T$ n. f; N  @# U
(.venv) [root@controller hcis_manager_portal]#
4 I9 H2 y/ }1 F, u) F- H" o3 e, \(.venv) [root@controller hcis_manager_portal]# , @( U8 g. w4 L
(.venv) [root@controller hcis_manager_portal]#
7 p0 v; L! p- q(.venv) [root@controller hcis_manager_portal]#
1 m) B  P, |; D7 [8 m4 P" E) a9 @
  ?# u4 C0 w' |7 i0 z 安装相关组件包:  L5 Z2 A: c  u% v8 p; q& y0 U
(.venv) [root@controller hcis_manager_portal]# dnf install -y gcc python3-devel mariadb-connector-c-devel pkg-config
3 ~! P! l, ~. LLast metadata expiration check: 0:05:33 ago on Thu 08 Jan 2026 09:43:40 AM CST.0 N, @+ w1 k+ I5 w' j! c8 X2 J
Package gcc-12.3.1-81.oe2503.x86_64 is already installed.
, w3 o2 t% j# Z+ ?/ hPackage pkgconf-2.3.0-1.oe2503.x86_64 is already installed.8 I1 o: ~3 H1 _
Dependencies resolved.- a7 n+ g! \1 K3 \& _5 [
==================================================================================================================================================================
* r& }0 k& y' f' U) s Package                                            Architecture                    Version                                     Repository                   Size3 ]3 O6 j& z# ^8 b/ I
==================================================================================================================================================================
# S7 |9 L( d6 ^( |Installing:7 k5 W0 A( A! b
mariadb-connector-c-devel                          x86_64                          3.4.3-1.oe2503                              OS                          146 k4 k4 d8 P+ V! W  A
python3-devel                                      x86_64                          3.11.11-3.oe2503                            OS                           17 M
; p+ Y9 Y+ S' e1 ZInstalling dependencies:
, h4 |6 E- S! b- X9 u" ` python3-rpm-generators                             noarch                          9-5.oe2503                                  OS                           21 k' R% v( N: O. M8 z: |* `  u

+ h/ Z" G" R& jTransaction Summary4 F% k5 V7 K7 v9 q1 S# I+ R: V3 h
==================================================================================================================================================================
' B6 r8 ?/ ?# A/ B: r; r, Y/ @Install  3 Packages  L3 S4 ~  V% _0 t: w9 ]$ s

; U3 F/ u+ q( S7 q+ ~$ @8 G2 yTotal size: 17 M5 c  T  A4 |. k+ x5 @* G, f8 Z
Total download size: 146 k
+ ?5 K0 \$ T7 XInstalled size: 106 M
7 p! ~* {  `7 {+ e" ?( @Downloading Packages:
  j  n9 k  _  _& r2 ]4 \[SKIPPED] python3-devel-3.11.11-3.oe2503.x86_64.rpm: Already downloaded                                                                                          ! ?7 E7 u# E( m6 Q$ P& I1 [1 Q1 x
[SKIPPED] python3-rpm-generators-9-5.oe2503.noarch.rpm: Already downloaded                                                                                       ) Y$ P2 @1 j' T# X6 u
(3/3): mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64.rpm                                                                        268 kB/s | 146 kB     00:00   
* H0 B/ d. L. C* I& R2 h0 Z: Q------------------------------------------------------------------------------------------------------------------------------------------------------------------7 O4 a+ }$ @' u( O: p
Total                                                                                                                             190 kB/s | 146 kB     00:00     0 o6 Z% J# W- _
Running transaction check' e1 U6 c+ x# F7 S8 ?" J
Transaction check succeeded.9 R/ t9 y% c: V3 `$ E7 ?6 r; a
Running transaction test6 ]+ q) e1 u9 T. o9 T/ k
Transaction test succeeded.
: R# M3 j4 z4 S7 K8 Q2 URunning transaction% Y" x! [5 x/ N# x5 h5 S
  Preparing        :                                                                                                                                          1/1 1 z3 r2 r, ~  p2 H6 H* L0 q& `% ]/ @
  Installing       : python3-rpm-generators-9-5.oe2503.noarch                                                                                                 1/3
1 ]7 y4 Y$ G7 D' X- K- Y" x* r  Installing       : python3-devel-3.11.11-3.oe2503.x86_64                                                                                                    2/3 ! H* P+ i1 }; }3 [& f  V3 U% @" Z
  Installing       : mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64                                                                                          3/3 7 u8 M- I6 o( ~" X6 X& P
  Running scriptlet: mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64                                                                                          3/3
* h6 P# L% @$ O5 O% X* @  Verifying        : mariadb-connector-c-devel-3.4.3-1.oe2503.x86_64                                                                                          1/3
4 t2 [% Z: t" L, y( i  Verifying        : python3-devel-3.11.11-3.oe2503.x86_64                                                                                                    2/3
9 s: e9 w" }) q, ]! v" G6 |  Verifying        : python3-rpm-generators-9-5.oe2503.noarch                                                                                                 3/3
/ y6 m/ h( x0 ]% C! [7 C0 M/ q" ~! U2 n  k5 v- z8 X& x# @
Installed:$ @8 E% z2 W2 i. W/ ^
  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           
2 _& M+ x% ]+ u% W2 V" z4 l+ `
5 g5 o5 V6 ~. ^, [: w4 GComplete!5 _9 E! B* t4 O4 e

1 p$ J; |# C. H5 w0 y再次安装:
6 D5 O; R! W6 s6 ~3 m0 q; }(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.4+ w; n" T) \4 G/ k& H3 s+ q7 Y
Collecting mysqlclient==2.2.4/ U2 L* X- [; `/ P
  Using cached mysqlclient-2.2.4.tar.gz (90 kB); {& J* ~: W2 c' g4 f  E
  Installing build dependencies ... done
4 e; N* T: k) \: \  Getting requirements to build wheel ... done7 u9 _; W3 y3 I
  Preparing metadata (pyproject.toml) ... done
) }' m+ F! J9 P! pBuilding wheels for collected packages: mysqlclient
) b# c. [* [8 ]% C) M6 O  Building wheel for mysqlclient (pyproject.toml) ... done$ I) M' I0 q+ r$ Q: B
  Created wheel for mysqlclient: filename=mysqlclient-2.2.4-cp311-cp311-linux_x86_64.whl size=79781 sha256=f28c5635af2009e45164e218fa8bb37b32ba06d451dd9a08766a7e91c1c4252b8 V0 X+ t* E0 n: c/ g# S9 ?7 i
  Stored in directory: /root/.cache/pip/wheels/1e/2f/4c/0bd8be7e2f3255f9436ce68bb1c2563661e8b7bbd49dcff0e09 ~% b4 j) m1 Z, v
Successfully built mysqlclient
" s1 C) l6 C1 j+ [5 @5 g+ W5 DInstalling collected packages: mysqlclient5 A* `  Y9 Z& Z$ U2 j
  Attempting uninstall: mysqlclient: v$ k- i5 E% E2 ^1 a- R1 c, Z( E' z
    Found existing installation: mysqlclient 2.2.0
0 n, z) t6 B. m- J" r  b+ `& o3 l    Uninstalling mysqlclient-2.2.0:! V2 v. e; x. ^  T9 c: v( C4 b
      Successfully uninstalled mysqlclient-2.2.0) }0 u* I1 Z( V5 t( B4 b. a3 W7 ^. K
Successfully installed mysqlclient-2.2.4
; ^3 m& I5 C1 A6 d
9 U/ ?% Y6 c0 L9 R[notice] A new release of pip is available: 25.0 -> 25.3
% I& Y# z4 f% E& F' M6 l[notice] To update, run: pip install --upgrade pip* b% x* `$ u' A& b$ t
$ C  K7 {4 B; a0 @
成功安装。2 X" ?- |% Y  }+ C
9 Y  t: c5 k  M% u1 Q0 {
(.venv) [root@controller hcis_manager_portal]# pip install mysqlclient==2.2.6
/ j( d  J: a0 M' v8 RCollecting mysqlclient==2.2.61 {* P# L, t4 P% H0 a7 R+ Y
  Using cached mysqlclient-2.2.6.tar.gz (91 kB)- p4 W  R/ H9 P7 A& o$ W* m
  Installing build dependencies ... done' C) D: u3 m* j8 X" @
  Getting requirements to build wheel ... done5 @) U7 `: ]3 p. B! R' ^
  Preparing metadata (pyproject.toml) ... done
) n7 T* y3 i) K2 p2 X# }2 R) j3 zBuilding wheels for collected packages: mysqlclient4 A4 _/ @$ A: P8 E" c, t3 j
  Building wheel for mysqlclient (pyproject.toml) ... done
: b& @/ a2 Z; K, k1 u# V3 a+ }  Created wheel for mysqlclient: filename=mysqlclient-2.2.6-cp311-cp311-linux_x86_64.whl size=80153 sha256=d3621a4c2733d18e78583c9a0558c81a653db240080c03deae38e2d7fa8bbe7b) t5 E" {; A# Q7 x* Z
  Stored in directory: /root/.cache/pip/wheels/7f/f3/9e/f1b8d41481e49d3d5381db6846c88637d253014786c15eb299
3 D" D( H% u8 l; h# g0 [Successfully built mysqlclient6 ?: {. b- M+ F  k) D: `
Installing collected packages: mysqlclient
+ l" D, N( u1 ]  Attempting uninstall: mysqlclient- g) l# T, e+ E0 e
    Found existing installation: mysqlclient 2.2.4
% G! A( Y3 n1 O. i2 k  H    Uninstalling mysqlclient-2.2.4:1 p: _3 c. t6 D
      Successfully uninstalled mysqlclient-2.2.4
  v% }6 v: R) P& A; B( F+ |. X. fSuccessfully installed mysqlclient-2.2.6
/ X2 Q6 F/ P! J, v7 _! A. S1 N" k8 W" S. F) F( j+ z: G
[notice] A new release of pip is available: 25.0 -> 25.3- d. p; e7 l7 q1 T( w5 O' k  h" D
[notice] To update, run: pip install --upgrade pip
, u4 h! v& Y, \) o8 s4 \& O. N$ H- I, K  c5 e
" f1 i+ E+ v" o! ^
成功升级。7 v+ ]2 Z6 t  q* P- h* R
完成安装。
& d. ?# K) l! M/ b9 |! X& Q6 T
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:24 , Processed in 0.056363 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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