I want to create an .exe file from a .py script using py2exe under Windows 7 and Anaconda.
So I created a setup.py file:
from distutils.core import setup
import py2exe
setup(console=['mouseMove.py'], options = {'py2exe': {'packages': ['pyautogui']}})
Now I navigate in the Windows-CMD to the directory which "mouseMove.py" and "setup.py" exists and start:
python setup.py py2exe
In the cmd window its written "running py2exe" and it remains in this state, nothing else happens.
Does anyone know where the problem is?
Contents of mouseMove.py:
import pyautogui
import sys
xCoords = sys.argv[1]
yCoords = sys.argv[2]
pyautogui.moveTo(xCoords, yCoords)
pyautogui.click()