LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-26-2007, 11:11 AM   #16
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30

I'm learning to live with two versions of Python. If your setup is similar to mine, in /usr/bin you'll see 3 python programs: python2.4, python2.5, and python. The last will be a link to one of the first two. You can control which python is used by editing the first line of Python scripts: change "python" to either "python2.4" or "python2.5" -- if one doesn't work, try the other. For programs you install with "configure/make/make install", any new Python scripts or modules will be put in /usr/lib/python2.4/site-packages (to be used by python2.4) or /usr/lib/python2.5/site-packages, depending on whether /usr/bin/python is a link to /usr/bin/python2.4 or a link to /usr/bin/python2.5. So you can control which Python the program will use by changing that link. You can also set the environment variable PYTHON to control which Python will be used.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpython2.4.so.1.0 taylorchase Linux - Software 2 05-10-2007 05:32 PM
Suse 10 not letting user login raxxal SUSE / openSUSE 59 05-23-2006 05:24 PM
iptables letting sendmail work zepplin611 Linux - Security 12 07-19-2004 10:30 AM
Letting normal user change apache directory nivek7 Linux - General 9 05-04-2004 06:58 PM
SuSE 8.1 Pro: User & Group Mgmt work as in Manual? Jim-BobH Linux - Newbie 0 10-07-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration