0

I am trying to use py2exe but it won't find the python script that I specified in the setup.py.

yes they are in the same directory.

i get this message;

C:\Users\11>c:\users\11\desktop\setup.py py2exe
running py2exe
*** searching for required modules ***
error: [Errno 2] No such file or directory: 'pygame.py'  
  • Did you write a script called pygame.py? Or are you trying to use the pygame 3rd party module? – jgritty Sep 30 '14 at 17:05
  • The script is called pygame.py yes – newo111 Sep 30 '14 at 19:33
  • It can't find that file. Either specify a relative path, or make sure it's in the current directory. Normally I'd call the script something more along the lines of `python setup.py py2exe` from within the same directory as setup.py. – jgritty Sep 30 '14 at 19:56
  • I tried calling the script as you said, but now i get the same 'Errno 2' error, but now it can't find the 'setup.py' file – newo111 Oct 04 '14 at 15:14
  • You're in the wrong directory then – jgritty Oct 06 '14 at 19:00

0 Answers0