473,378 Members | 1,527 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,378 software developers and data experts.

Installing Python 3000

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 ".msi" on Windows and ".dmg" on the Mac.

From the Python site, I read (different version, but still...):
----
Unpack the archive with tar -zxvf Python-2.4.4.tgz ... Change to the
Python-2.4.4 directory and run the "./configure", "make", "make
install" commands to compile and install Python.
----
The step that gets me worried is the "make install" one... I don't
want it to take over as default. I would like to be able to invoke it
by typing "python3k ..." from anywhere and have it work - while still
having "python" invoke the default 2.5 version.

André
Nov 26 '07 #1
4 1389
André wrote:
The step that gets me worried is the "make install" one... I don't want it
to take over as default. I would like to be able to invoke it by typing
"python3k ..." from anywhere and have it work - while still having
"python" invoke the default 2.5 version.
You want

make altinstall

Peter
Nov 26 '07 #2
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 ".msi" on Windows and ".dmg" on the Mac.

From the Python site, I read (different version, but still...):
----
Unpack the archive with tar -zxvf Python-2.4.4.tgz ... Change to the
Python-2.4.4 directory and run the "./configure", "make", "make
install" commands to compile and install Python.
----
The step that gets me worried is the "make install" one... I don't
want it to take over as default. I would like to be able to invoke it
by typing "python3k ..." from anywhere and have it work - while still
having "python" invoke the default 2.5 version.
I recommend that you then do use the prebuilt binaries, at least
where available, i.e.

http://www.python.org/download/releases/3.0/

For OSX, I recommend to use a different --prefix for installing,
e.g. /usr/local/py3k. All files then go into that directory, and
nothing else lives in it. To invoke it, you give
/usr/local/py3k/bin/python; if you want to make a python3k link someone
in your path - that would be your choice.

HTH,
Martin
Nov 26 '07 #3
On Nov 26, 6:18 pm, "Martin v. Löwis" <mar...@v.loewis.dewrote:
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 ".msi" on Windows and ".dmg" on the Mac.
From the Python site, I read (different version, but still...):
----
Unpack the archive with tar -zxvf Python-2.4.4.tgz ... Change to the
Python-2.4.4 directory and run the "./configure", "make", "make
install" commands to compile and install Python.
----
The step that gets me worried is the "make install" one... I don't
want it to take over as default. I would like to be able to invoke it
by typing "python3k ..." from anywhere and have it work - while still
having "python" invoke the default 2.5 version.

I recommend that you then do use the prebuilt binaries, at least
where available, i.e.

http://www.python.org/download/releases/3.0/

For OSX, I recommend to use a different --prefix for installing,
e.g. /usr/local/py3k. All files then go into that directory, and
nothing else lives in it. To invoke it, you give
/usr/local/py3k/bin/python; if you want to make a python3k link someone
in your path - that would be your choice.
I tried this but, unfortunately, the "configure" command fails.
Here's what appears to be the relevant info from config.log:
=======================
configure: failed program was:
| /* confdefs.h. */
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_SOURCE 1
| #define _BSD_TYPES 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2647: error: C compiler cannot create executables
See `config.log' for more details.
============================
This is on a Macbook with Leopard installed.

I tried compiling a simple c program (hello world), something that I
have not done in *years* and it failed. It appears as though gcc has
a problem :-(

I can create an object file (via gcc -c hello.c) but not an
executable...

====
andre-roberges-computer:Downloads andre$ gcc -o hello hello.c
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../
libSystem.dylib unknown flags (type) of section 6
(__TEXT,__dof_plockstat) in load command 0
collect2: ld returned 1 exit status
======
Any help would be appreciated!

André

HTH,
Martin
Nov 27 '07 #4
[huge snip]
============================
This is on a Macbook with Leopard installed.

I tried compiling a simple c program (hello world), something that I
have not done in *years* and it failed. It appears as though gcc has
a problem :-(

I can create an object file (via gcc -c hello.c) but not an
executable...
Never mind ... after searching on the Apple forums, I found out that I
needed to reinstall some developers tools from the Leopard dvd. I'll
post the result (success/failure) later...

André

Nov 27 '07 #5

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

Similar topics

12
by: John Salerno | last post by:
Is 'Python 3000' just a code name for version 3.0, or will it really be called that when it's released?
10
by: jantod | last post by:
I think there might be something wrong with the implementation of modulus. Negative float values close to 0.0 break the identity "0 <= abs(a % b) < abs(b)". print 0.0 % 2.0 # => 0.0 print...
14
by: beliavsky | last post by:
At http://www-03.ibm.com/developerworks/blogs/page/davidmertz David Mertz writes "Presumably with 2.7 (and later 2.x versions), there will be a means of warning developers of constructs that are...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
34
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas...
0
by: Guido van Rossum | last post by:
python-list@python.org] The first Python 3000 release is out -- Python 3.0a1. Be the first one on your block to download it! http://python.org/download/releases/3.0/ Excerpts: Python...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.