473,231 Members | 2,040 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,231 software developers and data experts.

2 different python versions / how to install packages?

I have two different Python versions on my Linux system
(2.2 and 2.3). I cannot remove version 2.2 because many
configuration files of the system depend on this version
of Python (and its extensions).

Now I want to install extension packages for Python 2.3;
if the package is distributed via Distutils, this is no
problem: 'python2.3 setup.py install' will do the job (i.e.
put everything in the 'site-packages' folder of Python 2.3).

But how do I e.g. install PyGtk etc. etc. for my second
Python version (2.3)???

--
mailto: logan@phreaker(NoSpam).net

Jul 18 '05 #1
5 3292
On Fri, 21 Nov 2003 22:41:45 +0100, Logan wrote:
I have two different Python versions on my Linux system
(2.2 and 2.3). I cannot remove version 2.2 because many
configuration files of the system depend on this version
of Python (and its extensions).

Now I want to install extension packages for Python 2.3;
if the package is distributed via Distutils, this is no
problem: 'python2.3 setup.py install' will do the job (i.e.
put everything in the 'site-packages' folder of Python 2.3).

But how do I e.g. install PyGtk etc. etc. for my second
Python version (2.3)???


OK, figured it out for the following (compiling everything from
the sources):

- Tcl/Tk 8.4.4 (separate from Tcl/Tk 8.3.5 of Fedora Core 1)
- Python 2.3.2 with Tkinter
- libxml2/libxslt Python-bindings (libxml2 2.5.11)
- PyGTK 2.0.0 (Python bindings for GTK+ 2.0.x resp. 2.2.x)

Remark: This was not as straightforward as I thought; I think
(but maybe I am wrong) that Python is a mess on Red Hat 9 resp.
Fedora Core 1 Linux. If someone is interested in how to install
and use a 'separate & clean' Python 2.3 as described above on
Fedora Core 1, please let me know. I could post a short 'HOWTO'.

--
mailto: logan@phreaker(NoSpam).net

Jul 18 '05 #2
I would install Python 2.3 in a seperate location from the system
version. The system version is probably in /usr/bin, so install Python
2.3 with "--prefix=/usr/local".

Make sure /usr/local/bin is before /usr/bin in your PATH. Then, when
you run configure for the extensions you want to install, the
configure script should pick up /usr/local/bin/python, and all should
be well.

You will also need to make sure /usr/local/bin is before /usr/bin if
you use "#!/usr/bin/env python" in your scripts. Or you could just
explicitly say "#!/usr/local/bin/python" to make sure you're using the
"correct" version.

Nick

--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
Jul 18 '05 #3
"""
If someone is interested in how to install and use a 'separate &
clean' Python 2.3 as described above on Fedora Core 1, please let me
know. I could post a short 'HOWTO'.
"""

I would. I've been working on it a bit for a couple weeks and haven't
made any progress.

TTFN,

Ranger_Nemo
Jul 18 '05 #4
On Tue, 25 Nov 2003 06:03:36 -0800, Ranger_Nemo wrote:
"""
If someone is interested in how to install and use a 'separate &
clean' Python 2.3 as described above on Fedora Core 1, please let me
know. I could post a short 'HOWTO'.
"""

I would. I've been working on it a bit for a couple weeks and haven't
made any progress.


Hi Ranger Nemo,

I posted the HOWTO in a new thread called

'HOWTO: Python 2.3 on Fedora Core 1 Linux'
(posted on Nov., 26)

Please check it out!

HTH, L.
--
mailto: logan@phreaker(NoSpam).net

Jul 18 '05 #5
Just wondering, but why would this be a problem. Fedora, like many Linux
distributions, has the irritating habit of installing the entire
distribution under /usr without making logical use of the /usr/local
tree. You just download the source, do the traditional
configure/make/make install dance and your good to go. The only
difference is you must type python2.3 since the python in /usr/bin will
take precedence over the one in /usr/local/bin. I'm using Fedora right
now, and all though I have not yet installed 2.3 on this distribution
the above is the standard way to install Python and I can't find much of
a reason as to why this wouldn't work.

On Tue, 2003-11-25 at 21:51, Logan wrote:
On Tue, 25 Nov 2003 06:03:36 -0800, Ranger_Nemo wrote:
"""
If someone is interested in how to install and use a 'separate &
clean' Python 2.3 as described above on Fedora Core 1, please let me
know. I could post a short 'HOWTO'.
"""

I would. I've been working on it a bit for a couple weeks and haven't
made any progress.


Hi Ranger Nemo,

I posted the HOWTO in a new thread called

'HOWTO: Python 2.3 on Fedora Core 1 Linux'
(posted on Nov., 26)

Please check it out!

HTH, L.
--
mailto: logan@phreaker(NoSpam).net

--
Doveclaw <do******@users.sourceforge.net>
http://horizon2.sourceforge.net
Jul 18 '05 #6

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

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
20
by: BJ MacNevin | last post by:
Hi all, I teach middle school and am currently trying to bring some computer science to the students. Our district has a wonderfully linked network throughout all our schools... done via MS...
1
by: Tim Bradshaw | last post by:
I'd like to be able to install python with stow, and then to install various modules which use distutils, also with stow. This currently pretty much won't work, because Python chases symlinks to...
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....
0
by: Neil Benn | last post by:
Hello, I'm attempting to determine what paths I would need on a win32, Linux, OSX box to run python. This should be a vanilla python with no extra packages (including tk). The paths I have...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
2
by: Jean-Paul Calderone | last post by:
On Mon, 16 Jun 2008 08:39:52 +1000, Ben Finney <bignose+hates-spam@benfinney.id.auwrote: Maybe. I'm no expert on Debian packaging. However, exarkun@boson:~$ ls -l...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.