A useful tools in windows py2exe(optional)
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
532
On Slideshare
532
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. PYTHON: SOME USEFUL TOOLS John Saturday, December 21, 2013
  • 2. PY2EXE: CREATE YOUR EXE FILE IN WINDOWS
  • 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"] } }, )