Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'explicitly': 0.05; 'interpreter': 0.05; 'subject:Python': 0.06; 'interpreter.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:version': 0.09; 'python': 0.11; 'assume': 0.14; 'wrote': 0.14; '2.7': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'symlink': 0.16; 'install': 0.23; 'subject:problem': 0.24; 'non': 0.24; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'needed.': 0.30; 'linux.': 0.31; 'skip:# 10': 0.33; 'but': 0.35; 'version': 0.36; "i'll": 0.36; 'two': 0.37; 'requiring': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; "you're": 0.61; 'default': 0.69; '2.7.': 0.84; 'subject::': 0.85; 'don\xe2\x80\x99t': 0.91; 'rpm': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re:Python version problem for rpm Date: Fri, 14 Feb 2014 07:12:12 -0500 (EST) Organization: news.gmane.org References: X-Gmane-NNTP-Posting-Host: dpc6744195087.direcpc.com X-Newsreader: PiaoHong Usenet NewsReaders 1.36 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392379731 news.xs4all.nl 2899 [2001:888:2000:d::a6]:49026 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66292 anju tiwari Wrote in message: > I have two version of python 2.4 and 2.7. > By default python version is 2.4 . I want to install need to install some rpm which needs python 2.7 interpreter. how can I enable 2.7 interpreter for only those packages which are requiring python 2.7, I don’t want to change my default python version(2.4) You don't say what OS you're running, but I'll assume some version of Linux. If you have some scripts that require 2.7, then change the shebang line to point explicitly to the 2.7 executable, rather than using #/usr/bin/env python Or make a symlink called python27 and use that explicitly when non default version is needed. -- DaveA