|
|
Collecting mysqlclient
8 v& a- u4 ?5 v5 I" Z0 Y7 e) D Downloading mysqlclient-2.2.8.tar.gz (92 kB)- G) w4 T5 @" S M1 B/ f
Installing build dependencies ... done
( X7 b; O# D2 F5 U Getting requirements to build wheel ... error
4 Y2 J9 }; n0 R. n error: subprocess-exited-with-error
/ L1 w5 B( R: n: K" q3 W: ^. _2 u4 Q% A' H' L! i+ }9 V; Z2 g" a
× Getting requirements to build wheel did not run successfully.
: P8 k/ i i* P* i9 E: j. r# ] │ exit code: 15 i8 J' V. H2 W' e" s( `
╰─> [31 lines of output]
2 T; x* O5 V' j( T8 m! v Trying pkg-config --exists mysqlclient
4 D g0 H! C; g% l; C7 D2 y Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.8 Q( u# o, j0 B& E( n
Trying pkg-config --exists mariadb% A8 k$ X0 u- V: c+ L+ x
Command 'pkg-config --exists mariadb' returned non-zero exit status 1. c- N7 ]+ R9 M4 y# d5 k. @3 F3 E
Trying pkg-config --exists libmariadb' _* @) o! Y+ s: u0 }* ~, n1 I: r
Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.
' q9 B% U4 x! ^& S$ B Trying pkg-config --exists perconaserverclient
( k& x8 Y3 }2 l5 ]4 q/ m Command 'pkg-config --exists perconaserverclient' returned non-zero exit status 1.
: b( `3 u% d, ] Traceback (most recent call last):/ @% {7 {7 v+ @
File "/usr/local/python-3.13.10/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>( I$ c1 R! P. N6 p
main()& A L2 f2 o- b0 h4 c/ z% m9 ~
~~~~^^
+ A3 d) J# `* r2 F File "/usr/local/python-3.13.10/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main( ?# t, {# T) g
json_out["return_val"] = hook(**hook_input["kwargs"])
, M/ W) x4 t& v9 P+ F0 p# n- N& o$ g ~~~~^^^^^^^^^^^^^^^^^^^^^^^^& ^! y7 j/ d9 F% G* U
File "/usr/local/python-3.13.10/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel! K8 ?% r% g+ I3 F
return hook(config_settings)
) S) O7 k9 T i5 f# x File "/tmp/pip-build-env-y6iocmfk/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel( X+ ^1 A- b5 B/ p( y! J& S
return self._get_build_requires(config_settings, requirements=[])
5 B6 Z! n+ x" Y& H7 D6 ^8 ]( L& i% \( b ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 s1 D' Q: Z1 e8 u File "/tmp/pip-build-env-y6iocmfk/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires2 B8 R0 |: @4 q6 _) Y" |4 i! l
self.run_setup(). M& w2 B* c( m8 s- T J1 m
~~~~~~~~~~~~~~^^) k6 F7 ?6 I4 S- ?6 v* H: z
File "/tmp/pip-build-env-y6iocmfk/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup3 i7 t: }1 C2 s2 t
exec(code, locals())
9 L7 Z+ {8 W9 Z! ^9 o! Y+ C* e* y& J, E ~~~~^^^^^^^^^^^^^^^^
% t5 Q q. Y4 e! e File "<string>", line 156, in <module>
5 D, Z# d5 @7 h" M. B# G File "<string>", line 49, in get_config_posix( m3 ^& \- u/ ~5 K
File "<string>", line 28, in find_package_name
. g. [( O1 p, r% }3 w Exception: Can not find valid pkg-config name.
; G& Q* F1 f1 w# p+ U5 E Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
8 x* g$ T: e! q; ~, Q" P! h [end of output]
* ]! t4 j, p/ z! @4 v+ I2 R6 X7 Q, j* _( \5 e1 T$ h: D6 U
note: This error originates from a subprocess, and is likely not a problem with pip.
- ^ ?) p2 _/ N' `+ _" [& i* n$ S9 ?. w
[notice] A new release of pip is available: 25.3 -> 26.0.1
7 y; r7 d# W0 X- J1 V[notice] To update, run: /usr/local/python-3.13.10/bin/python3.13 -m pip install --upgrade pip
* p6 D3 A1 {6 \* xERROR: Failed to build 'mysqlclient' when getting requirements to build wheel: R6 z9 }% D5 w( i1 n: T8 S
) L/ x, f# d$ K1 c$ V; N' Y+ F' T
& ^) F# o" r' I# t3 G- o解决办法: M$ |2 m. u1 U# @+ H1 @
安装相关的包:& [4 s" I9 H) Z& D0 O5 v" i
dnf install -y gcc python3-devel mariadb-connector-c-devel pkg-config) d4 g4 a3 O* l) q% \
/ Y0 \' V, Z4 ^' T4 M0 Q
4 w5 O/ t3 S2 o& a0 t' E( e6 o- n9 F! W+ I9 L
Downloading Packages:
/ e& Q8 K. u" e6 n[SKIPPED] platform-python-devel-3.6.8-41.el8.x86_64.rpm: Already downloaded
2 Y+ G: @9 x% j, D3 w[SKIPPED] python-rpm-macros-3-41.el8.noarch.rpm: Already downloaded
, g' U% W1 R: c; c0 Y[SKIPPED] python-srpm-macros-3-41.el8.noarch.rpm: Already downloaded
" O" n7 w" H6 G! O) X[SKIPPED] python3-rpm-generators-5-7.el8.noarch.rpm: Already downloaded
# O$ F1 {' k1 Y: y) a _, q% y[SKIPPED] python3-rpm-macros-3-41.el8.noarch.rpm: Already downloaded
5 @0 \. s; {/ C; y5 _3 T6 g[SKIPPED] python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64.rpm: Already downloaded
/ C: ? |5 T" Z[MIRROR] MariaDB-devel-12.2.2-1.el8.x86_64.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://dlm.mariadb.com/repo/mar ... .2-1.el8.x86_64.rpm [SSL certificate problem: certificate is not yet valid]
2 m0 t! g- |% B4 M: g* K$ _[MIRROR] MariaDB-devel-12.2.2-1.el8.x86_64.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://dlm.mariadb.com/repo/mar ... .2-1.el8.x86_64.rpm [SSL certificate problem: certificate is not yet valid]9 x7 [4 {" B! O
[MIRROR] MariaDB-devel-12.2.2-1.el8.x86_64.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://dlm.mariadb.com/repo/mar ... .2-1.el8.x86_64.rpm [SSL certificate problem: certificate is not yet valid]
' H6 G5 T( D* y, O7 g[MIRROR] MariaDB-devel-12.2.2-1.el8.x86_64.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://dlm.mariadb.com/repo/mar ... .2-1.el8.x86_64.rpm [SSL certificate problem: certificate is not yet valid]
8 |; S" G6 x- _; F/ ` z% j[FAILED] MariaDB-devel-12.2.2-1.el8.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success % A4 M3 N, i* ?0 r
L' x- R, [0 n: Y' q! n
The downloaded packages were saved in cache until the next successful transaction.
9 R3 a. f7 D, M! K* c6 i+ uYou can remove cached packages by executing 'dnf clean packages'.& t: L- p; T" x) \
Error: Error downloading packages:
@2 W. b5 S! t2 }! G Cannot download rpms/MariaDB-devel-12.2.2-1.el8.x86_64.rpm: All mirrors were tried' U$ C y, n9 }1 C4 i! ]9 h$ x( b1 v
(assetvenv) [root@asset ~]# dnf install -y gcc python3-devel mariadb-connector-c-devel pkg-config
) J v7 {6 _$ R* {! A- a5 ]7 vMariaDB Server 0.0 B/s | 0 B 00:01 0 `0 m' {! r) ^
Errors during downloading metadata for repository 'mariadb-main':
0 z" Z+ w9 N9 @" v0 \ - Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://dlm.mariadb.com/repo/mar ... repodata/repomd.xml [SSL certificate problem: certificate is not yet valid]9 x; J* j3 B8 J: J# T0 }1 j3 O
Error: Failed to download metadata for repo 'mariadb-main': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried$ u* \3 t# Q( [4 u! y' V6 E
A% X- W3 F6 H: N& b
* h9 r B5 x! ~/ u1 m' t- P: S3 y又报错:$ S- D+ @2 E! R4 v
7 l4 }6 `( n4 O- G! S6 `. a# W! B2 i因为时间不同步,调整下时间即可:8 d9 F: n% u# m$ ]$ n, C
. Z H6 P# D* B/ I! M2 R* w4 W/ {* F# dnf install -y gcc python3-devel mariadb-connector-c-devel pkg-config' s( q( r( X. O$ O
MariaDB Server 0.0 B/s | 0 B 00:01
9 }5 C# a- V" m. O0 \! KErrors during downloading metadata for repository 'mariadb-main':
, r- |& X9 E6 t% C" ~! q) @ - Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://dlm.mariadb.com/repo/mar ... repodata/repomd.xml [SSL certificate problem: certificate is not yet valid]
3 }, B: j" z: K! w( q9 s, xError: Failed to download metadata for repo 'mariadb-main': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried# N' H9 q; w. f0 O6 g& A. o
(assetvenv) [root@asset ~]# date -s 4/9
% s/ r/ L& l( q+ B% g+ tThu Apr 9 00:00:00 CST 2026
: v5 b! S6 `0 h& Y5 q0 B(assetvenv) [root@asset ~]# date -s 15:56:003 G9 E8 m2 J9 s0 n1 \( f% R
Thu Apr 9 15:56:00 CST 20264 d7 F+ R6 B3 K. V, j
(assetvenv) [root@asset ~]# dnf install -y gcc python3-devel mariadb-connector-c-devel pkg-config" a3 w. k: A% X' y
Last metadata expiration check: 4:35:55 ago on Thu 09 Apr 2026 11:20:08 AM CST.
" }0 t) p' \% N9 a; u3 x8 O9 D7 XPackage gcc-8.5.0-4.el8_5.x86_64 is already installed.; e! P! {8 d7 M# D. Z( B
Package pkgconf-pkg-config-1.4.2-1.el8.x86_64 is already installed.5 z( y" V- d$ O |9 E# h
Dependencies resolved./ @# X- ^% C3 x' H% w% {) T
================================================================================================================================================================
4 i, E, a0 {, m/ I+ o/ Q+ I. p Package Architecture Version Repository Size
9 [6 X! I- {+ V9 }. H/ b8 B8 C1 L================================================================================================================================================================
, ?. h3 L. g5 } j9 U: x; Y, cInstalling:
; d/ u5 x) y! n1 G% C) o3 e% ]4 F MariaDB-devel x86_64 12.2.2-1.el8 mariadb-main 9.1 M8 v/ a @* p. Y5 p7 ^3 M
python36-devel x86_64 3.6.8-38.module_el8.5.0+895+a459eca8 AppStream 16 k
* r) ~7 y( a2 _5 jInstalling dependencies:
# p. `( b8 v8 C! ?1 G7 [3 c platform-python-devel x86_64 3.6.8-41.el8 AppStream 249 k I7 F+ v$ s1 l2 K a; v' x1 d! p" W/ Q
python-rpm-macros noarch 3-41.el8 AppStream 15 k
8 o9 p$ k4 Y1 s9 g& c2 U python-srpm-macros noarch 3-41.el8 AppStream 15 k
' b5 E i Q/ J1 S9 ?; h ~: k python3-rpm-generators noarch 5-7.el8 AppStream 25 k
- P2 I8 C- k6 _$ u( Z" [* R python3-rpm-macros noarch 3-41.el8 AppStream 14 k
% z$ y- t! m( m6 n9 A5 L
2 R+ c6 J' n' S6 x% [$ ~Transaction Summary
) ^2 _$ t6 U, S ?9 k9 Q================================================================================================================================================================' k' b* e I9 P1 D' q5 X! E/ B
Install 7 Packages$ g/ |1 e% ^$ ~% A b1 z$ U i
0 z1 Q( f( O* Z: I1 g6 YTotal size: 9.4 M' q6 _1 J5 o4 P6 Q; V( I9 D
Total download size: 9.1 M
* { M9 R# V# Q# j9 S, CInstalled size: 59 M
6 E# S2 y3 X' I) o1 nDownloading Packages:
7 J$ W' Z; ]" u[SKIPPED] platform-python-devel-3.6.8-41.el8.x86_64.rpm: Already downloaded
& y) c4 m- L, ?3 b[SKIPPED] python-rpm-macros-3-41.el8.noarch.rpm: Already downloaded
b; F$ K2 m! |[SKIPPED] python-srpm-macros-3-41.el8.noarch.rpm: Already downloaded
6 E/ O7 |/ _1 z" c[SKIPPED] python3-rpm-generators-5-7.el8.noarch.rpm: Already downloaded ' u% n6 w4 |. d: ]( P
[SKIPPED] python3-rpm-macros-3-41.el8.noarch.rpm: Already downloaded
$ e; X0 f( i! b: i[SKIPPED] python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64.rpm: Already downloaded
$ D9 G" k0 a3 X% W4 F' B1 t(7/7): MariaDB-devel-12.2.2-1.el8.x86_64.rpm 3.7 MB/s | 9.1 MB 00:02 # Q1 V4 m8 j" r8 y4 o
----------------------------------------------------------------------------------------------------------------------------------------------------------------
% e3 ?* e6 p8 w7 d" Y' _Total 3.6 MB/s | 9.1 MB 00:02 * U% E- L+ b$ o0 V9 Q4 d
Running transaction check
# g& p9 [6 j6 Q: B4 ]1 ~; eTransaction check succeeded.- o' G+ i1 B3 @* w ?. Y3 t2 l
Running transaction test3 C' F, C V9 q: m/ U' U0 ]
Transaction test succeeded.8 S) y4 ^0 ?+ B6 P1 L- j; n% t$ Z- W4 L
Running transaction
) {! B( {+ g' L, O M Preparing : 1/1 , |0 A4 K {3 V
Installing : python3-rpm-generators-5-7.el8.noarch 1/7
/ @. b6 K. z6 ~0 [1 p( f7 H Installing : python-srpm-macros-3-41.el8.noarch 2/7 " `, J4 A5 M% s+ S2 K
Installing : python-rpm-macros-3-41.el8.noarch 3/7
* M/ G6 n- q" U Installing : python3-rpm-macros-3-41.el8.noarch 4/7 ' c7 w& U' E* M6 M0 c5 J
Installing : platform-python-devel-3.6.8-41.el8.x86_64 5/7
# X9 {( {1 k, h6 e8 { Installing : python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 6/7 + r3 J8 ]2 T0 S9 \6 o) S: s1 u
Running scriptlet: python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 6/7
# O E" H, [' M( f& i: r Installing : MariaDB-devel-12.2.2-1.el8.x86_64 7/7 5 c* d* x+ h! ]5 l! g& c. J. E
Running scriptlet: MariaDB-devel-12.2.2-1.el8.x86_64 7/7 ! N6 r6 g$ {/ |. ]3 D* Z: d# Y" i) O
Verifying : platform-python-devel-3.6.8-41.el8.x86_64 1/7
/ T. z( u8 t: f" i+ I! p F Verifying : python-rpm-macros-3-41.el8.noarch 2/7 9 v; N+ d2 u0 V0 \: H4 M
Verifying : python-srpm-macros-3-41.el8.noarch 3/7
0 E# q3 P! T3 J$ a Verifying : python3-rpm-generators-5-7.el8.noarch 4/7
/ K. |1 F" e$ n U4 {/ I Verifying : python3-rpm-macros-3-41.el8.noarch 5/7 * L$ l( h2 c+ ]& t
Verifying : python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 6/7 + _1 f$ e. M$ D, M9 L8 N
Verifying : MariaDB-devel-12.2.2-1.el8.x86_64 7/7
- V2 \6 f% e. v% n, }8 p, s( Y- z) Q* D" ^6 P: J* {( z* w0 r
Installed:
7 t [" }+ u& L% D+ N' ]8 b MariaDB-devel-12.2.2-1.el8.x86_64 platform-python-devel-3.6.8-41.el8.x86_64 python-rpm-macros-3-41.el8.noarch 2 \0 Y* C9 H3 M T0 W5 F3 l0 x9 ]
python-srpm-macros-3-41.el8.noarch python3-rpm-generators-5-7.el8.noarch python3-rpm-macros-3-41.el8.noarch
' A @* h. h4 o% ~% j# E5 `7 T& g7 g python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 4 y0 v, ?3 `; y$ q5 Q6 @
: i% X& S& M: OComplete!/ K! T) s! B* {* {
6 S; p% N1 @4 R% D
* v$ m6 M8 b) s! S" ~2 s再次安装:
' L- d) Y: n0 ~- x( y& v
& \7 d, M H# i
+ K2 |) f0 O5 e5 A$ ?% h# pip install django==6.0 mysqlclient django-cors-headers openpyxl qrcode pillow6 ]4 {) T% @4 I
Requirement already satisfied: django==6.0 in /usr/local/python-3.13.10/lib/python3.13/site-packages (6.0)6 Q: ^- U* x8 {
Collecting mysqlclient) _! N$ ]$ @% i5 N+ O( e4 Q) f$ _
Using cached mysqlclient-2.2.8.tar.gz (92 kB)$ G( g) o9 Q- C( R/ C
Installing build dependencies ... done
# B% K% `5 V! V, B Getting requirements to build wheel ... done
2 R6 F0 p6 w! Y Preparing metadata (pyproject.toml) ... done/ w# z% a4 I( ]( m' j9 Z/ ]
Collecting django-cors-headers/ Y( ?9 U+ x; g; T6 Y1 t
Downloading django_cors_headers-4.9.0-py3-none-any.whl.metadata (16 kB)
" h6 {0 W3 o& q0 f' rCollecting openpyxl
4 @2 y) a" M% | R; L6 _, ` Downloading openpyxl-3.1.5-py2.py3-none-any.whl.metadata (2.5 kB)0 u( f. U) v/ h+ c
Collecting qrcode
, [( v) T. L8 Y# M" N- S$ q) Y6 O Downloading qrcode-8.2-py3-none-any.whl.metadata (17 kB)- U: b* L; U( t4 X
Collecting pillow
7 o8 O" [- x8 h Downloading pillow-12.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (8.8 kB)
: d v4 O7 T. W# h- xRequirement already satisfied: asgiref>=3.9.1 in /usr/local/python-3.13.10/lib/python3.13/site-packages (from django==6.0) (3.11.1)
; t) o( V V- @7 yRequirement already satisfied: sqlparse>=0.5.0 in /usr/local/python-3.13.10/lib/python3.13/site-packages (from django==6.0) (0.5.5)
* B4 ~. K+ L n4 a4 nCollecting et-xmlfile (from openpyxl)4 E1 ~* s# v; o" |: o8 P, y, p
Downloading et_xmlfile-2.0.0-py3-none-any.whl.metadata (2.7 kB)
* O- v$ }) a; U& x. a' U/ vDownloading django_cors_headers-4.9.0-py3-none-any.whl (12 kB)
+ R& K$ R. n# j4 K, V) t" SDownloading openpyxl-3.1.5-py2.py3-none-any.whl (250 kB)
: J; Y: |: {6 E5 i, C0 ?Downloading qrcode-8.2-py3-none-any.whl (45 kB)
6 z! H( r3 x8 R6 O3 d1 QDownloading pillow-12.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.1 MB)# H* `% U% ?, x4 {2 x2 x
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 6.3 MB/s 0:00:011 K; X4 A& N3 q+ k P8 e
Downloading et_xmlfile-2.0.0-py3-none-any.whl (18 kB)
7 W# ~- `3 F' R2 U( b( q7 aBuilding wheels for collected packages: mysqlclient: |, F' C: ^: i
Building wheel for mysqlclient (pyproject.toml) ... done
' P$ h$ W5 C5 g+ D6 b- Q5 q Created wheel for mysqlclient: filename=mysqlclient-2.2.8-cp313-cp313-linux_x86_64.whl size=142572 sha256=2c46fc0c29d6e5974f6df057c8ddc59273f914b5f188d7b885976d5286e9cc53+ ]4 b2 I2 r- j1 u) e
Stored in directory: /root/.cache/pip/wheels/f8/e5/67/017f03738b3b81b2a504661f31a9fb909e452d7740aab517bb
4 l" q) m) U+ T' x/ ?Successfully built mysqlclient8 y; U# t! B7 B- X2 L$ \) |" N
Installing collected packages: qrcode, pillow, mysqlclient, et-xmlfile, openpyxl, django-cors-headers
% K+ L: n/ d7 H% w$ l# [4 ~! lSuccessfully installed django-cors-headers-4.9.0 et-xmlfile-2.0.0 mysqlclient-2.2.8 openpyxl-3.1.5 pillow-12.2.0 qrcode-8.2, a/ N. p# P0 p+ L6 e( ^
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.2 b6 K" \: X1 v' |7 C2 X
( q# C5 q d% _8 r; B) y[notice] A new release of pip is available: 25.3 -> 26.0.11 f5 Y2 c V- N6 K$ }, a2 }
[notice] To update, run: /usr/local/python-3.13.10/bin/python3.13 -m pip install --upgrade pip5 {# |6 n3 u1 B* ?. ?) i. Z
. I$ C! P5 _% @, [5 R
3 U- F5 _" d A
/ @ S, J, A T% l问题解决。
* P5 Q! A" e, d5 n' h# E3 W: X k1 w1 z2 ^2 g
: C0 e; v0 D4 ]# L4 V$ a |
|