Connecting Tech Pros Worldwide Forums | Help | Site Map

Installing 2.5 with 2.4?

John Salerno
Guest
 
Posts: n/a
#1: Sep 19 '06
Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if I install
2.5, does that mean I need to reinstall all the extensions I had for 2.4
again, or does 2.5 detect them somehow?

Thanks,
John

Fredrik Lundh
Guest
 
Posts: n/a
#2: Sep 19 '06

re: Installing 2.5 with 2.4?


John Salerno wrote:
Quote:
Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first?
if you don't plan to use it anymore, yes.
Quote:
Does 2.5 replace 2.4?
no.
Quote:
I doubt the latter, but if I install 2.5, does that mean I need to
reinstall all the extensions I had for 2.4 again
yes.
Quote:
does 2.5 detect them somehow?
no. extensions built for 2.5 are, in general, not compatible with
extensions built for 2.4.

</F>

Diez B. Roggisch
Guest
 
Posts: n/a
#3: Sep 19 '06

re: Installing 2.5 with 2.4?


John Salerno wrote:
Quote:
Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if I install
2.5, does that mean I need to reinstall all the extensions I had for 2.4
again, or does 2.5 detect them somehow?
Without an OS given, difficult answer. Generally, you can assume that there
is no need to ditch one version because you use another, they don't
interfer with each other. Only which one is perceived as "current" might
change and alter some behavior.

However, you have to install all extensions again, that is for sure. And
most probably some of them won't work so far, as they might need some
modification or at least time to make them available as binary.

Diez
John Salerno
Guest
 
Posts: n/a
#4: Sep 19 '06

re: Installing 2.5 with 2.4?


Diez B. Roggisch wrote:
Quote:
John Salerno wrote:
>
Quote:
>Hi all. Just curious, before I do it myself, about the best way to
>install 2.5 if it's the only version I want to use. Should I uninstall
>2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if I install
>2.5, does that mean I need to reinstall all the extensions I had for 2.4
>again, or does 2.5 detect them somehow?
>
Without an OS given, difficult answer. Generally, you can assume that there
is no need to ditch one version because you use another, they don't
interfer with each other. Only which one is perceived as "current" might
change and alter some behavior.
>
However, you have to install all extensions again, that is for sure. And
most probably some of them won't work so far, as they might need some
modification or at least time to make them available as binary.
>
Diez
Thanks for the answers guys. I'm using WinXP. I noticed that when I
installed 2.5rc2, it wasn't automatically assigned as the default
version of Python. I wasn't sure if this was just because it was an RC,
or maybe I have to manually make 2.5 the default. But I will uninstall
2.4 first anyway, so it shouldn't matter.

Can't wait to play around with it! :)
John Machin
Guest
 
Posts: n/a
#5: Sep 19 '06

re: Installing 2.5 with 2.4?



John Salerno wrote:
Quote:
Diez B. Roggisch wrote:
Quote:
John Salerno wrote:
Quote:
Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if I install
2.5, does that mean I need to reinstall all the extensions I had for 2.4
again, or does 2.5 detect them somehow?
Without an OS given, difficult answer. Generally, you can assume that there
is no need to ditch one version because you use another, they don't
interfer with each other. Only which one is perceived as "current" might
change and alter some behavior.

However, you have to install all extensions again, that is for sure. And
most probably some of them won't work so far, as they might need some
modification or at least time to make them available as binary.

Diez
>
Thanks for the answers guys. I'm using WinXP. I noticed that when I
installed 2.5rc2, it wasn't automatically assigned as the default
version of Python. I wasn't sure if this was just because it was an RC,
or maybe I have to manually make 2.5 the default. But I will uninstall
2.4 first anyway, so it shouldn't matter.
>
1. You need to set your path manually. A BAT file called pypath.bat
placed somewhere on your PATH and containing:
path c:\python%1;c:\python%1\scripts;%path%
might come in handy. Warning: this is best used once each time you open
up a command window; it's cumulative (Windows is not smart enough to
remove duplicate entries) and there is a an upper limit (I believe) on
the size of the PATH.
2. Re-installing purely-Python packages is highly desirable -- don't
just copy existing files from 2.4.
3. Re-installing packages with a binary component (.pyd) on Windows is
*essential* -- they won't work on a Python version other than the one
whose libs they were linked against.

I'd suggest that you uninstall 2.4 later if at all. Ensure that you
have got all the extensions you want/need for 2.5 before you burn your
boats. As Diez says in effect, there is no guarantee that any
particular extension is available for 2.5 on Windows right now.

Cheers,
John

John Salerno
Guest
 
Posts: n/a
#6: Sep 19 '06

re: Installing 2.5 with 2.4?


John Machin wrote:
Quote:
I'd suggest that you uninstall 2.4 later if at all. Ensure that you
have got all the extensions you want/need for 2.5 before you burn your
boats. As Diez says in effect, there is no guarantee that any
particular extension is available for 2.5 on Windows right now.
>
Thanks for the tips. As it turns out, all I really need for 2.4 is
mysqldb, but since I don't see it for 2.5 yet, I'm keeping 2.4.3 around
for now.
Duncan Booth
Guest
 
Posts: n/a
#7: Sep 20 '06

re: Installing 2.5 with 2.4?


"John Machin" <sjmachin@lexicon.netwrote:
Quote:
1. You need to set your path manually. A BAT file called pypath.bat
placed somewhere on your PATH and containing:
path c:\python%1;c:\python%1\scripts;%path%
might come in handy. Warning: this is best used once each time you open
up a command window; it's cumulative (Windows is not smart enough to
remove duplicate entries) and there is a an upper limit (I believe) on
the size of the PATH.
Windows is only smart enough to avoid duplicate entries if you tell it
to do that. e.g.

PATH c:\python25;c:\python25\scripts;%PATH:c:\python25; c:\python25\scripts;=%

will add the two Python 2.5 folders to the head of the path without
duplicating them.
John Machin
Guest
 
Posts: n/a
#8: Sep 20 '06

re: Installing 2.5 with 2.4?



Duncan Booth wrote:
Quote:
"John Machin" <sjmachin@lexicon.netwrote:
>
Quote:
1. You need to set your path manually. A BAT file called pypath.bat
placed somewhere on your PATH and containing:
path c:\python%1;c:\python%1\scripts;%path%
might come in handy. Warning: this is best used once each time you open
up a command window; it's cumulative (Windows is not smart enough to
remove duplicate entries) and there is a an upper limit (I believe) on
the size of the PATH.
>
Windows is only smart enough to avoid duplicate entries if you tell it
to do that. e.g.
>
PATH c:\python25;c:\python25\scripts;%PATH:c:\python25; c:\python25\scripts;=%
>
will add the two Python 2.5 folders to the head of the path without
duplicating them.
Wow .. I didn't know that! What's the syntax? Something like
%variablename[:oldtext=[newtext]]%
?
Where is this documented?

Tim Peters
Guest
 
Posts: n/a
#9: Sep 20 '06

re: Installing 2.5 with 2.4?


[Duncan Booth]
Quote:
Quote:
>Windows is only smart enough to avoid duplicate entries if you tell it
>to do that. e.g.
>>
>PATH c:\python25;c:\python25\scripts;%PATH:c:\python25; c:\python25\scripts;=%
>>
>will add the two Python 2.5 folders to the head of the path without
>duplicating them.
[John Machin[
Quote:
Wow .. I didn't know that! What's the syntax? Something like
%variablename[:oldtext=[newtext]]%
?
Yup.
Quote:
Where is this documented?
Quote:
>From a DOS box (cmd.exe), enter
set /?
Closed Thread