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


Groups > comp.lang.python > #66292 > unrolled thread

Re:Python version problem for rpm

Started byDave Angel <davea@davea.name>
First post2014-02-14 07:12 -0500
Last post2014-02-14 07:12 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#66292 — Re:Python version problem for rpm

FromDave Angel <davea@davea.name>
Date2014-02-14 07:12 -0500
SubjectRe:Python version problem for rpm
Message-ID<mailman.6913.1392379731.18130.python-list@python.org>
 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web