how can i make a executable program with a python2's script

jgm2163 jingguoming at yahoo.com.cn
Thu Sep 12 04:29:00 CEST 2002


Michael Stenner <mstenner at phy.duke.edu> wrote in message news:<mailman.1031351050.14744.python-list at python.org>...
> On Fri, Sep 06, 2002 at 04:57:19PM -0500, Stephen Boulet wrote:
> > You can put
> > 
> >     #/usr/bin/env python
> > 
> > at the top of the file and do a chmod +x file. Is this the answer to the 
> > right question?
> 
> Although since you're trying to use python 2.2.1 on a RHL 7.2 box, you
> may need to make that
> 
>  #!/usr/bin/env python2
> 
> Otherwise, you'll get python 1.5.2, which can lead to confusing errors.
> 
> 					-Michael
> > jgm2163 wrote:
> > > os     :RedHat 7.2
> > > Python :Python2.2.1
> > > 
> > > now,i had writen a python's script (extend with .py)
> > > how can i make a executable program on RedHat 7.2?
> > 
> > 
> > -- 
> > http://mail.python.org/mailman/listinfo/python-list

sorry,i want to make a release program on the computer that donot
install python2.1 (because that python1.5 was installed on the redhat
7.2 defaultly).



More information about the Python-list mailing list