python - Py2exe Error creating exe - Directory -
So I'm just trying to create an exe from a simple Hello World program using py2exe. I have created the setup code (setup.py) with the following code:
(I have tried setup (console = [{"script": 'HelloOop'}] as a suggestion
I run CMD as an administrator and type C: \ python27 \ setup.py py2exe
Then it says:
Error: hello.py: No such file or directory
I have a hello.py file in the same folder As the setup file is viewed on many different forums and py2exe tutorials and there was no answer, any help would be greatly appreciated.
You must first navigate to that directory and call then Python:
C:> CD C: \ python27c : \ Python27> Python Setup Py py2exe Note: Your HelloOP script should also be in the C: \ python27 directory.
Comments
Post a Comment