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: import distutils.core import py2exe setup (console = ['hello.py'])

(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

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -