- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
pip install mysqlclient9 y( P/ B, b( {
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.$ n! O; e# c8 w. X8 F3 J
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysqlclient/3 U3 d4 I0 v, n2 [
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysqlclient/0 Y" b' u& {% U2 q; w* U* H3 C
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysqlclient/
# {" ?+ f+ o' \; s0 J; T' a1 i& xWARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysqlclient/
& N. i) g2 g4 i" EWARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysqlclient/: A" y6 y* l% V r: |1 D, `6 P
Could not fetch URL https://pypi.org/simple/mysqlclient/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysqlclient/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
) w2 }4 ~( K% EERROR: Could not find a version that satisfies the requirement mysqlclient (from versions: none)
7 L# e/ ~7 U. G N8 EERROR: No matching distribution found for mysqlclient
% y1 f& N2 K* \+ \2 n8 o# g: BWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
6 N$ ~( X/ B- J" U9 qCould not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping6 D8 J7 L x1 ^5 W, L! D
0 h' x. [" U$ ^3 R+ @& a+ v
+ E7 L, e' k7 ~; g5 B4 S% f" D
4 k& V7 j5 ]. l( V
2 f2 j5 Z6 {; o$ b) \/ B/ V& ` n+ k% L2 _; b1 n
下载openssl包:" ]# p7 W9 R1 D+ \2 F7 w9 S6 M
wget https://openssl.org/source/old/1.1.1/openssl-1.1.1n.tar.gz
6 c% p; b+ U9 P. y0 ~6 d% T5 t, w[url=]openssl-1.1.1n.tar.gz[/url]
8 k' Z8 m1 A+ o下载后编译:3 s- M2 G' ]$ k7 k
# tar -zxvf openssl-1.1.1n.tar.gz ; E/ b5 \. @0 A' F- p
: B% k5 {2 _# {# cd openssl-1.1.1n/5 O- C# W" t9 p, f* k' [
# ./Configure --prefix=/usr/local/openssl #[color=rgba(0, 0, 0, 0.75)]设置安装目录 可以自定义 但是要记住,后面会用到
$ S! T& o4 U, _0 Y
/ u" X, p+ ?& G0 R' h# ./config" s# o9 _) P9 ~3 d6 Y1 M3 {# E
' q$ [5 A$ Z' ~# W4 P) ?* omake -j1 l$ X3 G& Y3 j/ v% Y: j1 [* T6 e0 Q
# t7 n! _; n7 z& r# B9 C6 V6 A( G+ A; k* o2 ^
[root@python-flask openssl-1.1.1n]# ./Configure --prefix=/usr/local/openssl
_2 S+ L8 e6 ?Configuring OpenSSL version 1.1.1n (0x101010efL) for
0 J0 y( g5 e! NUsing os-specific seed configuration
( {' ]( s3 h5 G) X( F8 gUsage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-egd] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--config=FILE] os/compiler[:flags]
) U0 e2 Q, b2 m4 M A% m/ x, c9 R8 P/ K, ?+ l# u
pick os/compiler from:0 l$ X/ z& K f
BS2000-OSD BSD-generic32 BSD-generic64 BSD-ia64 BSD-riscv64 BSD-sparc64 ; R0 X0 r- e: h8 p: `
BSD-sparcv8 BSD-x86 BSD-x86-elf BSD-x86_64 Cygwin Cygwin-i386 Cygwin-i486 9 f& |- Y' ]+ i% Z4 P8 x- v
Cygwin-i586 Cygwin-i686 Cygwin-x86 Cygwin-x86_64 DJGPP MPE/iX-gcc UEFI UWIN 4 @) j4 c) e# A5 y* b" Z
VC-CE VC-WIN32 VC-WIN32-ARM VC-WIN32-ONECORE VC-WIN64-ARM VC-WIN64A
3 D' n* z/ Y2 _" E" EVC-WIN64A-ONECORE VC-WIN64A-masm VC-WIN64I aix-cc aix-gcc aix64-cc aix64-gcc - O+ g- ^" F v8 n
android-arm android-arm64 android-armeabi android-mips android-mips64 0 p! `3 S+ `& C6 ?1 O) H; [' |
android-x86 android-x86_64 android64 android64-aarch64 android64-mips64 1 g6 }) D9 [$ b0 N; {
android64-x86_64 bsdi-elf-gcc cc darwin-i386-cc darwin-ppc-cc 1 ^/ u- G- ^3 S# n* P0 N5 [) i
darwin64-arm64-cc darwin64-ppc-cc darwin64-x86_64-cc gcc haiku-x86
9 e7 i/ T/ W8 p! k. lhaiku-x86_64 hpux-ia64-cc hpux-ia64-gcc hpux-parisc-cc hpux-parisc-gcc
! I7 k& U9 I- |3 P6 C% Fhpux-parisc1_1-cc hpux-parisc1_1-gcc hpux64-ia64-cc hpux64-ia64-gcc
) v8 N _& f0 P" vhpux64-parisc2-cc hpux64-parisc2-gcc hurd-x86 ios-cross ios-xcrun ios64-cross
0 Z5 L x) M) v. @/ G8 V+ B7 gios64-xcrun iossimulator-xcrun iphoneos-cross irix-mips3-cc irix-mips3-gcc
, |1 w7 t9 S, ^. Yirix64-mips4-cc irix64-mips4-gcc linux-aarch64 linux-alpha-gcc linux-aout
' |0 o( P( `+ e! P8 i3 e, m9 m" @7 L! O Elinux-arm64ilp32 linux-armv4 linux-c64xplus linux-elf linux-generic32 + Q6 [: c7 _" O$ N) G3 w" W
linux-generic64 linux-ia64 linux-mips32 linux-mips64 linux-ppc linux-ppc64 5 U6 r+ U S, n8 p$ h1 }5 }4 g. E
linux-ppc64le linux-sparcv8 linux-sparcv9 linux-x32 linux-x86 linux-x86-clang
8 k/ O9 r, c5 y. B/ R) L4 Zlinux-x86_64 linux-x86_64-clang linux32-s390x linux64-mips64 linux64-riscv64
& C6 J' x4 B' G/ S) r5 D& \linux64-s390x linux64-sparcv9 mingw mingw64 nextstep nextstep3.3 sco5-cc
( l$ Y* e" Q8 i9 t9 _sco5-gcc solaris-sparcv7-cc solaris-sparcv7-gcc solaris-sparcv8-cc
, q% P {3 i) @; E# x9 psolaris-sparcv8-gcc solaris-sparcv9-cc solaris-sparcv9-gcc solaris-x86-gcc 6 n O& q2 }: \; ~2 Z8 C+ h- ~6 b
solaris64-sparcv9-cc solaris64-sparcv9-gcc solaris64-x86_64-cc ) g5 ?& Y& l* t* T7 f3 q
solaris64-x86_64-gcc tru64-alpha-cc tru64-alpha-gcc uClinux-dist
1 A: D; s5 @% a: VuClinux-dist64 unixware-2.0 unixware-2.1 unixware-7 unixware-7-gcc vms-alpha
1 ~6 \ b! i9 \2 rvms-alpha-p32 vms-alpha-p64 vms-ia64 vms-ia64-p32 vms-ia64-p64 vos-gcc # O1 P1 W1 Q: _) h; S+ f. A
vxworks-mips vxworks-ppc405 vxworks-ppc60x vxworks-ppc750 vxworks-ppc750-debug
1 d; D5 \' p' M3 x* m% r+ gvxworks-ppc860 vxworks-ppcgen vxworks-simlinux 3 Z" `: ?& G9 k$ t
' H' E* N: M* y
NOTE: If in doubt, on Unix-ish systems use './config'.
3 m! G) ?" Z5 V0 o[root@python-flask openssl-1.1.1n]# ./config --prefix=/usr/local/openssl , ~3 o$ D9 `6 a4 Q x
Operating system: x86_64-whatever-linux2) |& A' K5 B& ?. B' x/ B5 {
Configuring OpenSSL version 1.1.1n (0x101010efL) for linux-x86_64 B, [9 d8 z2 C" h- X
Using os-specific seed configuration
& N$ V _ j- [Creating configdata.pm
9 U1 n/ Q9 h. y" D% j# B" DCreating Makefile
6 D3 V7 Z) ?7 U* F3 ~- u* F
: a ~1 f- n; H$ Y**********************************************************************1 G1 [2 j8 N% T4 R9 p2 z: n
*** ***7 w8 A: h$ l# s4 q
*** OpenSSL has been successfully configured ***
5 G e: a& c, d' d*** **** O2 t- f5 g3 W, s, n0 O
*** If you encounter a problem while building, please open an ***
( ^- W n0 B+ n0 \; _6 `2 c*** issue on GitHub <https://github.com/openssl/openssl/issues> ***6 d' [: E% b2 h
*** and include the output from the following command: ***+ I9 j7 {+ |7 b, D; a1 S
*** ***
, i4 W' X6 V8 u9 D*** perl configdata.pm --dump ***- w$ i1 b+ l, G- w% q0 _# ?9 k* i7 z
*** ***
! D: a, V" X$ f+ ?*** (If you are new to OpenSSL, you might want to consult the ***
8 _# \, }; w$ o*** 'Troubleshooting' section in the INSTALL file first) ***
+ O5 d! q& T: W/ ?0 S' I6 {1 G4 G*** ***
0 G* D! D* ~# L; [& k: J**********************************************************************5 r( ?( r* D, G% W! u( \
[root@python-flask openssl-1.1.1n]# make -j; L' I, d+ C0 U
2 ~% H1 r: W2 u+ Z- }# o+ y
[root@python-flask openssl-1.1.1n]# make install 3 }0 |+ v$ q2 N E( `! V
7 h; p2 r+ p& \3 _7 ]3 k" V/ o+ Vopenssl安装完成。( h2 ^7 T5 d% V0 A
3 ]! J$ K- g& e/ ?1 q( u s" @重新安装python
% {; s0 Z6 V- ^6 s9 T; g5 I7 W# |% e+ K- C% n5 s- S: ~
+ E* ?0 Y1 t3 P3 D: b9 t[root@python-flask Python-3.12.4]# ./configure --prefix=/usr/local/python312 --enable-optimizations --with-openssl=/usr/local/openssl --with-openssl-rpath=auto 添加openssl 相关参数,--with-openssl-rpath=auto [color=rgba(0, 0, 0, 0.75)]这个一定别漏
! z2 U3 f- ~! ]! {2 I( U! N' d
% W# R+ @2 s; F. s2 r7 S7 i1 p
3 H0 w. K4 M! L. m* N
0 u8 x1 @3 W. [4 z, ]make 或者make -j 都可以
( A$ X/ o& [! a. `* h6 h7 x- H
6 ^3 z1 K: ~2 H* Z( w8 e然后执行make install
M- l$ t( j* S% k' d: a' i, @) U! S
python 安装完成。8 v/ Y3 J4 G$ h. v; q) z
9 W' A4 r( \1 X2 \% d% h/ S l9 [8 ?9 t" c
ln -sf /usr/local/python312/bin/python3.12 /usr/bin/python3.121 L2 P7 D6 ?( b: b9 L# q- q; t7 R. Z
/ I: }" x* _( U; P
2 m m5 l( A% k9 i- I2 e7 s2 u9 h2 K. L( i1 O+ R
, L+ u- Z& i/ S6 m* F; C; X; D9 K% o
! Y- G- b W* h/ F* l% L0 Y
3 [3 d. X$ c1 E% i3 W2 z5 P7 s+ M/ M
|
|