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

A useful tools in windows py2exe(optional)

on

  • 412 views

 

Statistics

Views

Total Views
412
Views on SlideShare
412
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    A useful tools in windows py2exe(optional) A useful tools in windows py2exe(optional) Presentation Transcript

    • PYTHON: SOME USEFUL TOOLS John Saturday, December 21, 2013
    • PY2EXE: CREATE YOUR EXE FILE IN WINDOWS
    • Install it from PYPI • Use pip or easy_install install the py2exe module
    • Create your first program • Write python file hello.py #hello.py print “hello,world” • Write the setup.py under same dir
    • • Run your setup script >>> Python setup.py py2exe • Run the hello.exe file under dist
    • 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"] } }, )
    • 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"] } }, )