473,799 Members | 2,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Removing Python 2.4.4 on OSX

I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.

Robert

Mar 24 '07
27 2480

bbxx789Can you explain how that works? If you install python in
bbxx789/usr/local, doesn't that leave you with something like
bbxx789/usr/local/python? So what does putting usr/local/bin ahead of
bbxx789your other paths do?

When you install with --prefix==/usr/local you will wind up with
/usr/local/bin/python. There will also be a /usr/local/lib/pythonX.Y (with
structure underneath it) containing all the Python and extension modules.

Skip
Mar 24 '07 #11
You don't have to uninstall 2.4.4 to use 2.5. Just change where the
symlink points:

shanegeiger@sha ne-geigers-computer:~\ 14:45:35$ ls -la /usr/bin/python
lrwxr-xr-x 1 root wheel 24 Mar 1 12:48 /usr/bin/python ->
/usr/local/bin/python2.5
shanegeiger@sha ne-geigers-computer:~\ 14:45:40$

In general, I am a little wary of uninstalling programs like Python
which are used by many applications. You don't want to find out after
you have uninstalled it that something actually needed it. It is much
safer to keep it around.
ky******@gmail. com wrote:
On Mar 24, 11:30 am, "Robert Hicks" <sigz...@gmail. comwrote:
>I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.

Robert

Windows allows us to uninstall it. I think the only thing it really
installs is the files, and then it sets the system path, so just
delete the files and change your path. Unfortunately, I do not have a
Mac to test with.

Mike

--
Shane Geiger
IT Director
National Council on Economic Education
sg*****@ncee.ne t | 402-438-8958 | http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy
Mar 24 '07 #12
Shane Geiger wrote:
You don't have to uninstall 2.4.4 to use 2.5. Just change where the
symlink points:

shanegeiger@sha ne-geigers-computer:~\ 14:45:35$ ls -la /usr/bin/python
lrwxr-xr-x 1 root wheel 24 Mar 1 12:48 /usr/bin/python ->
/usr/local/bin/python2.5
shanegeiger@sha ne-geigers-computer:~\ 14:45:40$
I have been chastised on this list for a similar suggestion (notably
re-linking /usr/bin/python) as it may break the system because the
particular version installed may be required for some scripts in the system.

Probably better is to create a link in ~/bin and make sure ~/bin is
first in the path. Bash experts--please say how to do this because bash
is default for OSX and is undoubtedly what the OP is using. I use csh.

Better, even than this is to install ipython under 2.5 and put the
following script in your ~/bin (name it python):

#! /bin/csh -f
#second line of script (include above)

if ($#argv == 0) then
/usr/local/bin/ipython # <==or wherever ipython is
else
/usr/local/bin/python2.5 $argv
endif

#end of script

It doesn't matter if you use bash, the above script, though csh, will
run fine.

Now type this in a terminal: "chmod a+x ~/bin/python".

Now you can use ipython or python depending on whether you supply
arguments. ipython will launch if you supply none (which means you want
an interactive interpreter) and "regular" python2.5 will launch if you
give it a script name--avoiding jumping into the ipython interpreter
after the script finishes.

If you don't know what ipython is, you are missing out.

James
Mar 24 '07 #13
7stud wrote:
On Mar 24, 12:09 pm, "Greg Donald" <gdon...@gmail. comwrote:
>On 24 Mar 2007 10:30:28 -0700, Robert Hicks <sigz...@gmail. comwrote:
>>I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.
You're not required to remove the old version before installing the new version.

Just install the new version somewhere like /usr/local and put
/usr/local/bin ahead of your other paths.

--
Greg Donaldhttp://destiney.com/

Can you explain how that works? If you install python in /usr/local,
doesn't that leave you with something like /usr/local/python? So what
does putting usr/local/bin ahead of your other paths do?
Don't build python for OS X unless you know you need to or want a
learning experience. Rolling your own python is somewhat a can of worms
for the uninitiated and it will be pretty tough beyond that to make it
run as cleanly as the stock builds. (E.g. you will be asking about why
readline doesn't work, etc.) This stuff is especially the case for OS X,
which does things a little differently than linux.

Just download the 2.5 installer from python.org. Double click it and be
done. A link to the new python will be created for you in
/usr/local/bin. If you already had an earlier installed and the link
didn't get updated, just replace the old one substituting 2.4 (or 2.3)
with 2.5.

Then make sure /usr/local/bin comes before /usr/bin in your path and you
will be set. See also my previous post about integrating ipython.

James
Mar 24 '07 #14
On Mar 24, 2007, at 12:30 PM, Robert Hicks wrote:
I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.
Don't uninstall it.

That's why Apple put python under /Library/Frameworks/
Python.framewor k/Versions. So you can have multiple versions installed.

Hopefully you left Apple's default install of 2.3.5 unmolested as
well. My best advise is to download the binaries from python.org and
install. This gives you a nice universal framework build, compete
with readline support.

If you do elect to build it yourself, just make sure to read the Mac
specific documentation (which tells how to generate a framework
build). Whichever route you take, /usr/local/bin/python and /Library/
Frameworks/Python.framewor k/Versions/Current/bin/python will point to
pyhon2.5. Since you already have 2.4x I assume your path already
contains /usr/local/bin -- otherwise, you'll probably keep picking up
the default 2.3.5 in /usr/bin.

It looks like Stackless has a Mac binary install as well. Does
anybody here know if I can install that on top of a stock 2.5 without
breaking things?

regards,
Michael

---
Simplicity is the ultimate sophistication.
-Leonardo da Vinci

Mar 25 '07 #15

On Mar 24, 2007, at 12:55 PM, 7stud wrote:
In addition, the download notes for the stand alone MacPython 2.5
install say that there aren't as many modules for 2.5 as there are for
the 2.4, which is something you may want to consider.
There aren't as many pre-built modules for 2.5 at the MacPython
site. That's not to say you can't easily build your own, mind you --
assuming you've got developer tools installed.

regards,
Michael

---
A clever person solves a problem.
A wise person avoids it.
-Albert Einstein


Mar 25 '07 #16
No, the OSX version is like 2.3 something. I installed the 2.4.4
version in /usr/local bypassing the Apple stuff.
Oh! Well then:

---[cut here]---
# danger will robinson -- use at your own risk ;-)
rm /usr/local/bin/python*
rm -rf /usr/local/lib/python
---[snip]---

Is the uninstall program :-)

Mar 25 '07 #17
On Mar 24, 8:18 pm, Michael Bentley <mich...@jedimi ndworks.comwrot e:
On Mar 24, 2007, at 12:30 PM, Robert Hicks wrote:
I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.

Don't uninstall it.

That's why Apple put python under /Library/Frameworks/
Python.framewor k/Versions. So you can have multiple versions installed.
/Libary/Frameworks/ is an empty directory(excep t for . and ..) on my
Mac, and I have 2.3.5 installed somewhere.

Mar 25 '07 #18
On Mar 24, 9:40 pm, "7stud" <bbxx789_0...@y ahoo.comwrote:
On Mar 24, 8:18 pm, Michael Bentley <mich...@jedimi ndworks.comwrot e:
On Mar 24, 2007, at 12:30 PM, Robert Hicks wrote:
I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.
Don't uninstall it.
That's why Apple put python under /Library/Frameworks/
Python.framewor k/Versions. So you can have multiple versions installed.

/Libary/Frameworks/ is an empty directory(excep t for . and ..) on my
Mac, and I have 2.3.5 installed somewhere.
I mean /Library/Frameworks

Misspelled it in the post, but not when I searched it. I did an ls -
al on it and got this:

$ ls -al /Library/Frameworks
total 0
drwxrwxr-x 2 root admin 68 Jul 1 2006 .
drwxrwxr-t 43 root admin 1462 Feb 20 14:31 ..

Mar 25 '07 #19
js
The only way you can do is rermove python2.4.4's files manually.

I suggest you to use MacPorts or Fink.

With MacPort, you can uninstall python2.4 by doing
$ port uninstall python24

And Installation is
$ port install python25

On 24 Mar 2007 10:30:28 -0700, Robert Hicks <si*****@gmail. comwrote:
I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.

Robert

--
http://mail.python.org/mailman/listinfo/python-list
Mar 25 '07 #20

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

Similar topics

9
6738
by: hokiegal99 | last post by:
This script works as I expect, except for the last section. I want the last section to actually remove all spaces from the front and/or end of filenames. For example, a file that was named " test " would be renamed "test" (the 2 spaces before and after the filename removed). Any suggestions on how to do this? import os, re, string print " " print "--- Remove '%2f' From Filenames ---" print " "
0
1547
by: Rim | last post by:
Hi, Can someone explain the process for removing a python module I no longer need? Is there a command like: python setup.py remove ??? Thanks -Rim
15
1965
by: Brent W. Hughes | last post by:
When doing object-oriented stuff, it bothers me to have to type "self" so many times. I propose that Python allow the programmer to optionally type ".variable" instead of "self.variable" to mean the same thing. Of course, the interpreter would have to be more careful about detecting floats that begin with just a period as in ".5". What are your thoughts?
30
3483
by: Steven Bethard | last post by:
George Sakkis wrote: > "Steven Bethard" <steven.bethard@gmail.com> wrote: >> Dict comprehensions were recently rejected: >> http://www.python.org/peps/pep-0274.html >> The reason, of course, is that dict comprehensions don't gain you >> much at all over the dict() constructor plus a generator expression, >> e.g.: >> dict((i, chr(65+i)) for i in range(4)) > > Sure, but the same holds for list comprehensions: list(i*i for i in
6
8665
by: bruce | last post by:
hi... i'm running into a problem where i'm seeing non-ascii chars in the parsing i'm doing. in looking through various docs, i can't find functions to remove/restrict strings to valid ascii chars. i'm assuming python has something like valid_str = strip(invalid_str)
17
2724
by: Eric_Dexter | last post by:
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("</CsInstruments>") pattern1 = re.compile("</") orcfilename = filename + "orc" for line in alllines: if not pattern1 print >>orcfilename, line I am pretty sure my code isn't close to what I want. I need to be able
4
13471
by: Ahmed, Shakir | last post by:
I have thousands of records in MS Access database table, which records I am fetching using python script. One of the columns having string like '8 58-2155-58' Desired output: '858215558' I want to remove any spaces between string and any dashes between strings. I could do it in access manually but want to do from python script
4
3946
by: Ahmed, Shakir | last post by:
I need to remove text string from the list of the numbers mentioned below: 080829-7_A 070529-5_c 080824-7_O 070405_6_p The output will be : 080829-7 070529-5
0
1689
by: Adam Pletcher | last post by:
You just want to drop the last two characters? Slice it. 080829-7 - Adam Behalf
0
10473
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
10249
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7563
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
6804
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();...
1
4138
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
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.