473,395 Members | 2,468 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,395 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 3298
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...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.