3. Install it from PYPI
• Use pip or easy_install install the py2exe
module
4. Create your first program
• Write python file hello.py
#hello.py
print “hello,world”
• Write the setup.py under same dir
5. • Run your setup script
>>> Python setup.py py2exe
• Run the hello.exe file under dist
6. if you meet “error: MSVCP90.dll:
No such file or directory”
Change the setup file
from distutils.core import setup
import py2exe
setup(windows=[‘hello.py'],
options = {
"py2exe": {
"dll_excludes":
["MSVCP90.dll"]
}
},
)
7. if you meet “error: MSVCP90.dll:
No such file or directory”
Change the setup file
from distutils.core import setup
import py2exe
setup(windows=[‘hello.py'],
options = {
"py2exe": {
"dll_excludes":
["MSVCP90.dll"]
}
},
)