Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #66292

Re:Python version problem for rpm

From Dave Angel <davea@davea.name>
Subject Re:Python version problem for rpm
Date 2014-02-14 07:12 -0500
Organization news.gmane.org
References <CAEfHu+swx9+nzdcPstkE8Kk0qE7WJvB8y8bJw1LHU45B3gReWQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.6913.1392379731.18130.python-list@python.org> (permalink)

Show all headers | View raw


 anju tiwari <anjutiwari5@gmail.com> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re:Python version problem for rpm Dave Angel <davea@davea.name> - 2014-02-14 07:12 -0500

csiph-web