[Django]-How to make a python file executable in windows

4👍

You can do it this way:

  1. Right Click on the a .py file and go to Properties.
  2. Click “Change” on “Opens With” and browse for the location of your python executeable.

Suppose Python is installed in “D:\Program Files\Python\python.exe” then you need to key in

D:\Program Files\Python\python.exe "%1" %*
👤BipinK

0👍

Why not try cx_Freeze? It freezes the document and makes it executable.

http://cx-freeze.sourceforge.net/

I love using it; it allows people who don’t have Python installed on their computers to run and execute the file.

Leave a comment