Sep-30-2017, 02:20 PM
Hey Programmers, Game Developers and Software Envolvers...
I try to convert my .py file (an simple test, called "Test1") into an executable program,
using CX_Freeze for python 3.6... i get python 3.6.2 and i get it installed with pip,
on windows. This is my '.py file' they want to convert to:
Test1.py:
The folder:
Whats wrong with cx_Freeze... i don't know whats the problem...
Can anyone help me about what the problem is and what do i bad ?...
Thanks, Jamie.
I try to convert my .py file (an simple test, called "Test1") into an executable program,
using CX_Freeze for python 3.6... i get python 3.6.2 and i get it installed with pip,
on windows. This is my '.py file' they want to convert to:
Test1.py:
import pygame import sys screen = pygame.display.set_mode((800,600)) done = False while not done: for event in pygame.event.get(): if event.type == pygame.QUIT: done = True elif event.type == pygame.KEYDOWN: if event.key == pygame.K_ESCAPE: done = True screen.fill((255,0,255)) pygame.display.update() pygame.quit() sys.exit()This is my setup file, called setup.py:
from cx_Freeze import setup, Executable setup(name = "C:\Users\Gebruiker\Desktop\Python\Scripts\Test", version = "0.1" , description = "" , executables = [Executable("Test1.py")])The commands thad i call in the command prompt:
The folder:
cd C:\Users\Gebruiker\Desktop\Python\Scripts\TestMy setup command after the folder path:
python setup.py buildNow the problem is at follow... the command prompt can't find my setup.py...
Whats wrong with cx_Freeze... i don't know whats the problem...
Can anyone help me about what the problem is and what do i bad ?...
Thanks, Jamie.