如何安装python2.3版-2.3.4的安装

1.下载相应的rpm包

wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-2.3.4-3pydotorg.i386.rpm
wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-devel-2.3.4-3pydotorg.i386.rpm
wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-tools-2.3.4-3pydotorg.i386.rpm
wget --passive ftp://rpmfind.rediris.es/sites2/fedora.us/fedora/fedora/1/i386/RPMS.os/db4-4.1.25-14.i386.rpm


[root@eygle soft]# wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-devel-2.3.4-3pydotorg.i386.rpm
--18:37:44-- http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-devel-2.3.4-3pydotorg.i386.rpm
=> `python2.3-devel-2.3.4-3pydotorg.i386.rpm'
Resolving www.python.org... done.
Connecting to www.python.org[194.109.137.226]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 678,130 [application/octet-stream]

100%[========================================================================================>] 678,130 28.14K/s ETA 00:00

18:38:08 (28.14 KB/s) - `python2.3-devel-2.3.4-3pydotorg.i386.rpm' saved [678130/678130]

[root@eygle soft]# wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-tools-2.3.4-3pydotorg.i386.rpm
--18:38:11-- http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-tools-2.3.4-3pydotorg.i386.rpm
=> `python2.3-tools-2.3.4-3pydotorg.i386.rpm'
Resolving www.python.org... done.
Connecting to www.python.org[194.109.137.226]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 690,451 [application/octet-stream]

100%[========================================================================================>] 690,451 28.85K/s ETA 00:00

18:38:35 (28.85 KB/s) - `python2.3-tools-2.3.4-3pydotorg.i386.rpm' saved [690451/690451]

[root@eygle soft]# wget --passive ftp://rpmfind.rediris.es/sites2/fedora.us/fedora/fedora/1/i386/RPMS.os/db4-4.1.25-14.i386.rpm
--18:39:35-- ftp://rpmfind.rediris.es/sites2/fedora.us/fedora/fedora/1/i386/RPMS.os/db4-4.1.25-14.i386.rpm
=> `db4-4.1.25-14.i386.rpm'
Resolving rpmfind.rediris.es... done.
Connecting to rpmfind.rediris.es[130.206.1.5]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /sites2/fedora.us/fedora/fedora/1/i386/RPMS.os ... done.
==> PASV ... done. ==> RETR db4-4.1.25-14.i386.rpm ... done.

[ <=> ] 1,480,750 21.89K/s

18:40:46 (21.89 KB/s) - `db4-4.1.25-14.i386.rpm' saved [1480750]

[root@eygle soft]# wget http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-2.3.4-3pydotorg.i386.rpm
--18:40:55-- http://www.python.org/ftp/python/2.3.4/rpms/fedora-1/python2.3-2.3.4-3pydotorg.i386.rpm
=> `python2.3-2.3.4-3pydotorg.i386.rpm'
Resolving www.python.org... done.
Connecting to www.python.org[194.109.137.226]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,565,683 [application/octet-stream]

100%[========================================================================================>] 7,565,683 29.37K/s ETA 00:00

18:45:07 (29.37 KB/s) - `python2.3-2.3.4-3pydotorg.i386.rpm' saved [7565683/7565683]

2.安装

[root@eygle soft]# rpm -ivh db4-4.1.25-14.i386.rpm
warning: db4-4.1.25-14.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: python2.3-2.3.4-3pydotorg.i386.rpm: V3 DSA signature: NOKEY, key ID 95ccbcff
Preparing... ########################################### [100%]
file /lib/libdb-4.1.so from install of db4-4.1.25-14 conflicts with file from package db4-4.1.25-8
file /usr/lib/libdb_cxx-4.1.so from install of db4-4.1.25-14 conflicts with file from package db4-4.1.25-8

[root@eygle soft]# rpm -ivh python*.rpm
warning: python2.3-2.3.4-3pydotorg.i386.rpm: V3 DSA signature: NOKEY, key ID 95ccbcff
Preparing... ########################################### [100%]
1:python2.3 ########################################### [ 33%]
2:python2.3-devel ########################################### [ 67%]
3:python2.3-tools ########################################### [100%]

3.调用
使用python2.3来进入python,原来的版本可以使用python来调用

[root@eygle soft]# python2.3
Python 2.3.4 (#1, Jul 22 2004, 20:47:54)
[GCC 3.3.2 20031022 (Red Hat Linux 3.3.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

(base) ly@ly:~$ # 强制重新加载驱动模块 sudo rmmod xpad joydev 2>/dev/null sudo modprobe xpad sudo modprobe joydev # 查看驱动加载状态 sudo dmesg | grep -i "input\|joystick" [ 3.459551] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 4.787520] input: USB 2.4G Receiver as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.1/1-2.1:1.0/0003:260D:0042.0001/input/input1 [ 4.787605] hid-generic 0003:260D:0042.0001: input,hidraw0: USB HID v1.11 Mouse [USB 2.4G Receiver] on usb-3610000.usb-2.1/input0 [ 4.791237] input: USB 2.4G Receiver as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.1/1-2.1:1.1/0003:260D:0042.0002/input/input2 [ 4.847578] hid-generic 0003:260D:0042.0002: input,hidraw1: USB HID v1.11 Keyboard [USB 2.4G Receiver] on usb-3610000.usb-2.1/input1 [ 4.851851] input: USB 2.4G Receiver Keyboard as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.1/1-2.1:1.2/0003:260D:0042.0003/input/input3 [ 4.911576] hid-generic 0003:260D:0042.0003: input,hidraw2: USB HID v1.11 Keyboard [USB 2.4G Receiver] on usb-3610000.usb-2.1/input2 [ 4.914777] hid-generic 0003:260D:0042.0004: No inputs registered, leaving [ 4.914813] hid-generic 0003:260D:0042.0004: hidraw3: USB HID v1.11 Device [USB 2.4G Receiver] on usb-3610000.usb-2.1/input3 [ 4.918834] input: USB 2.4G Receiver Touchscreen as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.1/1-2.1:1.4/0003:260D:0042.0005/input/input5 [ 4.918886] input: USB 2.4G Receiver System Multi Axis as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.1/1-2.1:1.4/0003:260D:0042.0005/input/input6 [ 4.918932] hid-generic 0003:260D:0042.0005: input,hidraw4: USB HID v1.11 Device [USB 2.4G Receiver] on usb-3610000.usb-2.1/input4 [ 5.564307] input: PixArt lenovo USB Optical Mouse as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.1/1-2.3.1:1.0/0003:17EF:608D.0006/input/input7 [ 5.564364] hid-generic 0003:17EF:608D.0006: input,hidraw5: USB HID v1.11 Mouse [PixArt lenovo USB Optical Mouse] on usb-3610000.usb-2.3.1/input0 [ 6.055973] input: 8BitDo 8BitDo Ultimate 2C Wireless Controller Keyboard as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.1/0003:2DC8:310A.0007/input/input8 [ 6.115821] input: 8BitDo 8BitDo Ultimate 2C Wireless Controller Mouse as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.1/0003:2DC8:310A.0007/input/input9 [ 6.115879] hid-generic 0003:2DC8:310A.0007: input,hidraw6: USB HID v1.11 Keyboard [8BitDo 8BitDo Ultimate 2C Wireless Controller] on usb-3610000.usb-2.3.4/input1 [ 6.120448] hid-generic 0003:2DC8:310A.0008: hidraw7: USB HID v1.11 Device [8BitDo 8BitDo Ultimate 2C Wireless Controller] on usb-3610000.usb-2.3.4/input2 [ 8.555188] input: 8BitDo Ultimate 2C Wireless Controller as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.0/input/input10 [ 9.834525] input: NVIDIA Jetson Orin NX HDA HDMI/DP,pcm=3 as /devices/platform/bus@0/3510000.hda/sound/card0/input11 [ 9.851807] input: NVIDIA Jetson Orin NX HDA HDMI/DP,pcm=7 as /devices/platform/bus@0/3510000.hda/sound/card0/input12 [ 9.887196] input: NVIDIA Jetson Orin NX HDA HDMI/DP,pcm=8 as /devices/platform/bus@0/3510000.hda/sound/card0/input13 [ 9.913076] input: NVIDIA Jetson Orin NX HDA HDMI/DP,pcm=9 as /devices/platform/bus@0/3510000.hda/sound/card0/input14 [ 21.907442] rfkill: input handler disabled [ 274.416723] input: 8BitDo Ultimate 2C Wireless Controller as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.0/input/input15 [ 296.754673] input: 8BitDo Ultimate 2C Wireless Controller as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.0/input/input16
最新发布
10-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值