I have python script main.py and two others scripts under.py and above.py which I imported to main.py, I also used additional modules and I want to make .exe file for Windows for distribution. My setup.py looks like
from distutils.core import setup
import py2exe
setup(console=['main.py'])
and when I run python setup.py py2exe
I get dist folder with .dlls and main.exe file. When I start from command line main.exe I get error
No module urllib2 found
What can be a problem, urlib2 is used by some module which I use and I have installed via pip ( parse_rest module). I looked in library.zip folder and there is urllib.pyc but nor urllib2. When I from command line type python and in python 2.7 I can import module urllib2.