473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Installing Python2.6 on Mac Os (Leopard)

Hi everyone, I'm trying to install Python2.6 on my mac (Leopard
10.5.5), but I'm encountering some problems. To install the package I
followed the instructions I found at this link:
http://wiki.python.org/moin/MacPython/Leopard
If I open wing, it turns out that the installed version is actually
2.6, but if i run python from terminal it displays version 2.5.1, that
is the default version for leopard. Furthermore I can't launch idle.
I'm pretty new to mac os environment so forgive me if my questions are
silly. Any hint?
Nov 17 '08 #1
6 6659

On Nov 17, 2008, at 10:53 AM, Massi wrote:
Hi everyone, I'm trying to install Python2.6 on my mac (Leopard
10.5.5), but I'm encountering some problems. To install the package I
followed the instructions I found at this link:
http://wiki.python.org/moin/MacPython/Leopard
If I open wing, it turns out that the installed version is actually
2.6, but if i run python from terminal it displays version 2.5.1, that
is the default version for leopard. Furthermore I can't launch idle.
I'm pretty new to mac os environment so forgive me if my questions are
silly. Any hint?
Your terminal is using the shell environment -- specifically the PATH
-- to find Python. Although your Python is probably installed in a
Framework directory, one doesn't typically put Framework directories
in the PATH. Instead, your install may have created symlinks in /usr/
bin or /usr/local/bin to your Python 2.6 install. If, for instance,
those symlinks live in /usr/local/bin, then put that directory first
in your path and then typing `python` at the command line will launch
Python 2.6.

If the symlinks aren't there, you can create them by hand.

HTH
Philip

Nov 17 '08 #2

17 nov 2008 kl. 16.53 skrev Massi:
Hi everyone, I'm trying to install Python2.6 on my mac (Leopard
10.5.5), but I'm encountering some problems. To install the package I
followed the instructions I found at this link:
http://wiki.python.org/moin/MacPython/Leopard
If I open wing, it turns out that the installed version is actually
2.6, but if i run python from terminal it displays version 2.5.1, that
is the default version for leopard. Furthermore I can't launch idle.
I'm pretty new to mac os environment so forgive me if my questions are
silly. Any hint?
--
http://mail.python.org/mailman/listinfo/python-list
Locally build software usually ends up in subdirectories of /usr/local.
The build in Python 2.5 has a symlink installed in /usr/bin.
To make your locally-build python first in the search paths,
add export PATH="/usr/local/bin:$PATH"
to your bash login file
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
to************@comhem.se
Nov 17 '08 #3
Philip Semanchuk wrote:
>
On Nov 17, 2008, at 10:53 AM, Massi wrote:
>Hi everyone, I'm trying to install Python2.6 on my mac (Leopard
10.5.5), but I'm encountering some problems. To install the package I
followed the instructions I found at this link:
http://wiki.python.org/moin/MacPython/Leopard
If I open wing, it turns out that the installed version is actually
2.6, but if i run python from terminal it displays version 2.5.1, that
is the default version for leopard. Furthermore I can't launch idle.
I'm pretty new to mac os environment so forgive me if my questions are
silly. Any hint?

Your terminal is using the shell environment -- specifically the PATH
-- to find Python. Although your Python is probably installed in a
Framework directory, one doesn't typically put Framework directories
in the PATH. Instead, your install may have created symlinks in /usr/
bin or /usr/local/bin to your Python 2.6 install. If, for instance,
those symlinks live in /usr/local/bin, then put that directory first
in your path and then typing `python` at the command line will launch
Python 2.6.
AFAIK there are no symlinks at all created, everything resides
under /Library/Framework/Python.framework/Versions/2.6/bin.

A note to the OP: be cautious about replacing /usr/bin/python with your new
& shiny 2.6! That is likely to break the system, as OSX
uses /usr/bin/python and expects it to be the standard version shipped.

Creating

/usr/bin/python2.6

should be safe though.

Diez
Nov 17 '08 #4

On Nov 17, 2008, at 1:17 PM, Diez B. Roggisch wrote:
Philip Semanchuk wrote:
>>
On Nov 17, 2008, at 10:53 AM, Massi wrote:
>>Hi everyone, I'm trying to install Python2.6 on my mac (Leopard
10.5.5), but I'm encountering some problems. To install the
package I
followed the instructions I found at this link:
http://wiki.python.org/moin/MacPython/Leopard
If I open wing, it turns out that the installed version is actually
2.6, but if i run python from terminal it displays version 2.5.1,
that
is the default version for leopard. Furthermore I can't launch idle.
I'm pretty new to mac os environment so forgive me if my questions
are
silly. Any hint?

Your terminal is using the shell environment -- specifically the PATH
-- to find Python. Although your Python is probably installed in a
Framework directory, one doesn't typically put Framework directories
in the PATH. Instead, your install may have created symlinks in /usr/
bin or /usr/local/bin to your Python 2.6 install. If, for instance,
those symlinks live in /usr/local/bin, then put that directory first
in your path and then typing `python` at the command line will launch
Python 2.6.

AFAIK there are no symlinks at all created, everything resides
under /Library/Framework/Python.framework/Versions/2.6/bin.
Sorry if I misinformed; I have such symlinks in /usr/local/bin dated
the same day as my custom Python install. I guess I could have created
them myself, but I don't think I would have bothered creating a
symlink for pythonw, for example since I never use it.

A note to the OP: be cautious about replacing /usr/bin/python with
your new
& shiny 2.6! That is likely to break the system, as OSX
uses /usr/bin/python and expects it to be the standard version
shipped.

Creating

/usr/bin/python2.6

should be safe though.
Good point, once again I'm sorry for my sloppy information.

bye
Philip


Nov 17 '08 #5
Sorry if I misinformed; I have such symlinks in /usr/local/bin dated
the same day as my custom Python install. I guess I could have created
them myself, but I don't think I would have bothered creating a
symlink for pythonw, for example since I never use it.
Did you really create a framework-install? Maybe that explains it. You can
compile it witout framework on OSX, but then of course miss a lot of
features.

I for once have created PATH-entries to the frameworks in my .bashrc

Diez
Nov 17 '08 #6

On Nov 17, 2008, at 2:05 PM, Diez B. Roggisch wrote:
>Sorry if I misinformed; I have such symlinks in /usr/local/bin dated
the same day as my custom Python install. I guess I could have
created
them myself, but I don't think I would have bothered creating a
symlink for pythonw, for example since I never use it.

Did you really create a framework-install? Maybe that explains it.
You can
compile it witout framework on OSX, but then of course miss a lot of
features.
I have two pythons installed, the OS X standard one in the Frameworks
directory under /System, and mine in the Frameworks directory under /
Library. I'm pretty sure I used the --enable-framework option to
install the latter. I can't figure out how else my custom Python would
have landed in a Frameworks directory. =)


Nov 17 '08 #7

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

Similar topics

1
by: Wayne Pierce | last post by:
I have been working on installing the Python bindings for Milters on a Mandrake 9.x system. When I type: python setup.py build I get the following error (last 4 lines of output): File...
0
by: Alex Lapp | last post by:
Hi ng, i have a problem installing cvs module from: http://www.object-craft.com.au/projects/csv/ My Python version is: Python 2.1.3 (Not the latest, but i need this version for running Zope...
1
by: Guillaume Gervais | last post by:
Hello there, I'm using Debian GNU/Linux testing/unstable (sarge) as an operating system. About a month ago, I installed python 2.3 on my machine, from the sources. And it worked perfectly. ...
2
by: Dennis Hore | last post by:
I'm trying to install Nick Patavalis' ppgplot package on Mac OS X 10.3 with python 2.3. I first sent this message to Nick, but he said he doesn't have any experience with the Mac platform. ...
7
by: Edward Diener | last post by:
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation....
13
by: Gary Wessle | last post by:
Hi I am trying to install NumPy in my debian/testing linux 2.6.15-1-686. with no numpy for debian/testing, I am left alone, since the experimental version available by debian will result in a...
5
by: Cappy2112 | last post by:
I've just started a job which has a massive python2.3.4-centric tools installation and configuration. I know what you're going to say, but I can't upgrade and be the only one with a newer...
14
by: Nader Emami | last post by:
I have installed "TurboGears" and I would install 'pysqlite' also. I am a user on a Linux machine. If I try to install the 'pysqlite' with 'easy_install' tool I get the next error message. The...
4
by: =?ISO-8859-1?Q?Andr=E9?= | last post by:
Sorry about the simple question ... I'd like to install Python 3000 on my computers (Mac, and possibly Windows), without messing up the existing versions. So far, I've always relied on using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.