473,804 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the best way to upgrade python?

Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

Thank you for any idea.

Mar 8 '07 #1
8 2371
On 3/8/07, Sick Monkey <si************ @gmail.comwrote :
Have you tried to upgrade the current python RPM?

rpm -Uvh ....

You can also build from source. Once you get Python 2.4 up and running I am
pretty sure you can do a symbolic link on the python 2.3 application (either
in /usr/bin or /usr/sbin) and point it to the 2.4 python file.

I get '$rpm -Uvh python'
error: open of python failed: no such file or directory

but when I do '$rpm -q python ' , I get python -2.3.4-14.1
On 8 Mar 2007 13:13:13 -0800, yi*****@gmail.c om <yi*****@gmail. com wrote:
Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

Thank you for any idea.

--
http://mail.python.org/mailman/listinfo/python-list

Mar 8 '07 #2
yi*****@gmail.c om a écrit :
Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.
Not really a python-related problem by itself, but anyway: you probably
have other packages depending on this version of Python, so better to
keep it. Now nothing prevents you from having multiple Python versions.
Just build from sources (preferably giving /usr/local as prefix to
../configure since it's not the 'system' version), and install in a
different location (IIRC there's a make altinstall rule - anyway all
this is documented in the source directory).

Mar 8 '07 #3
On 3/8/07, Sick Monkey <si************ @gmail.comwrote :
Yeah, sorry I should have added more data.
You will need to go to rhn.redhat.com and either download the RPM or get the
url.

So you would do:
(1) download the rpm to your home directory
rpm -Uvh nameOfRPM

or
(2) grab the url
rpm -Uvh http://urlOfRPM

either way should update your python. Dont be distressed if you need to
update or install new RPMs.
Thanks. I went to rhn.redhat.com, but they only have python 2.3.4 for RHEL4.
>
On 3/8/07, ying lcs <yi*****@gmail. comwrote:
On 3/8/07, Sick Monkey <si************ @gmail.comwrote :
Have you tried to upgrade the current python RPM?
>
rpm -Uvh ....
>
You can also build from source. Once you get Python 2.4 up and running
I am
pretty sure you can do a symbolic link on the python 2.3 application
(either
in /usr/bin or /usr/sbin) and point it to the 2.4 python file.
>

I get '$rpm -Uvh python'
error: open of python failed: no such file or directory

but when I do '$rpm -q python ' , I get python -2.3.4-14.1
On 8 Mar 2007 13:13:13 -0800, yi*****@gmail.c om <yi*****@gmail. com >
wrote:
Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

Thank you for any idea.

--
http://mail.python.org/mailman/listinfo/python-list

>
>

Mar 8 '07 #4
ying lcs wrote:
Hi,

i am using red hat enterprise 4. It has python 2.3 installed.
What is
the best way to upgrade to python 2.4?
Upgrade to a current RHEL?

Fedora 6 is shipping with Python 2.4. It's getting to 2.5

John Nagle
Mar 9 '07 #5
On 8 Mar, 22:13, "ying...@gmail. com" <ying...@gmail. comwrote:
Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?
By installing a version from the source packages available from
python.org.
I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.
That's because various administrative programs (and perhaps others)
depend on Python 2.3 - unless Red Hat provide versions of these for
Python 2.4 (which I suppose they don't in RHEL 4), then you can't
remove Python 2.3 from your system.

Either configure the source package choosing --prefix as something
other than /usr (the default is /usr/local) and then install using
"make install", or choose --prefix as /usr and do a "make altinstall".
Using package management tools to build custom packages which can then
be installed via the system tools might be an even better solution,
since you can then manage what you've done and uninstall if necessary,
but I can't tell you how that's done on Red Hat (with RPMs and so on).

Paul

Mar 9 '07 #6
yi*****@gmail.c om wrote:

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.
Install Py2.4 and actually start using it, are two different animals.

For example, I have installed Py2.4 and Py2.5 in my laptop. They
coexist, and there's no problem about this.

Telling all your installed applications to use the newer, it's not so
easy, mainly because you don't have the power to test and change every
installed application.

So let them be. Just install the new version, and use it.

Regards,

--
.. Facundo
..
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Mar 22 '07 #7
On Thursday 22 March 2007 15:18, Facundo Batista
wrote:
yi*****@gmail.c om wrote:
i am using red hat enterprise 4. It has
python 2.3 installed. What is the best way to
upgrade to python 2.4?

I think one way is to compile python 2.4 from
the source, but I can't remove the old one
since when i do 'rpm -e python', i get error
like 'failed dependencies'.

Install Py2.4 and actually start using it, are
two different animals.

For example, I have installed Py2.4 and Py2.5
in my laptop. They coexist, and there's no
problem about this.

Telling all your installed applications to use
the newer, it's not so easy, mainly because you
don't have the power to test and change every
installed application.

So let them be. Just install the new version,
and use it.

Regards,

--
. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/

I recently installed py 2.5 and I used the local
user option. Now I build programs on 2.5 but I
left the system with the original 2.4? since it
worked just fine.

Look in the instructions on how to build for local
users and you 'll save yourself from encountering
the unexpected.
jim-on-linux
http://www.inqvista.com







Mar 22 '07 #8
Facundo Batista wrote:
yi*****@gmail.c om wrote:
>>i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?
Very carefully.

All the C libraries that work with Python are version-dependent.

John Nagle
Mar 23 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1212
by: Scott Chapman | last post by:
Does anynone have these available? I'd like to upgrade (hoping it doesn't break my Redhat install). If I upgrade, all my site-packages have to be reinstalled to the new site-packages directory right? Scott
0
1531
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade woes: Numeric, gnuplot, and Python 2.4 Date: 2004-12-11 18:45:10 PST > Here's my sitch: > > I use gnuplot.py at work, platform Win32. > I want to upgrade to Python 2.4.
28
3395
by: joe | last post by:
I have a simple .NET application with two or three listViews which are filled with icons and when the user click on the proper item, they display the related images. I use "image = null ; " for all images that have been used and are going to be closed. This is how ever no way to reduce the memory consumption. I have noticed , using the task manager, that garbage collector doesn't actually do any collections unless the computer becomes low...
7
1091
by: Charlie | last post by:
Hi: I'm using a lot of JavaScript and HTML 4.0. Things seem to work well in Netscape 7.0 and IE 5.5\6, but not Netscape 4\6 and not sure of IE 5.0. My site blocks downlevel browsers and redirects users to page to upgrade browsers. My question is- how much of market am I potentially losing by doing this? Thanks,
3
1589
by: Jason | last post by:
We have an Extranet with one customer with 20,000 users that has, unfortunately, standardized on Netscape 4.77 for the entire company. We are in the process of rewriting this application from Java to .NET and, of course, would not like to be constrained by the Least Common Denominator (LCD) this particular company represents. Question: What is the best way to handle this without having to double the development effort? For example, MVC...
4
4333
by: Fabian Braennstroem | last post by:
Hi, I am pretty new to python and will use it mainly in combination with scientific packages. I am running ubuntu breezy right now and see that some packages are out of date. Do you have any suggestion, how I can get/keep the latest python modules (e.g. scipy, numpy,...) on my ubuntu system? I.e. does there exist any script/program, which downloads and installs automatically the latest stable releases of selected modules? It would be...
4
1749
by: fdu.xiaojf | last post by:
Hi, I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need to uninstall python 2.4.3 first ? I'd rather not to do so, because I have installed some other python packages for python2.4.3. Thanks.
2
2739
by: yinglcs | last post by:
Hi, Red hat 4 comes with python 2.3, and I am trying to upgrade to python 2.4. So I download and compile the source of python2.4. But as I run it I get the following error, can you please tell me how to fix it? # /root/src/Python-2.4.4/python ./nov/scripts/stressTestServlet.py ./ nov/scripts/stressTestInputFile 10 127.0.0.1
7
3253
by: tinnews | last post by:
I'm just beginning to create some python modules for my own use and I'm wondering where to put them. Initially I have put them in $HOME/bin and I have set PYTHONPATH to point to them there. It all seems to be OK but I was wondering if I might be storing up problems for the future by putting python modules in with my odds and sods of shell scripts etc. (and with my python 'main' scripts). Would I be better off putting the modules...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6870
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.