|
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.
>>>
|
如欲转载,请注明作者与出处.并请保留本文的连接.
回首页
|