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

Martin v. Loewis martin at v.loewis.de
Thu Sep 12 02:51:57 EDT 2002


jingguoming at yahoo.com.cn (jgm2163) writes:

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

The easiest way is to put 

#! /usr/bin/env python2

into the first line of script.py, then do

chmod +x script.py

HTH,
Martin



More information about the Python-list mailing list