Python Scripts to Executables with Py2exe tutorial

preview_player
Показать описание
This tutorial teaches you how to turn your typical python scripts into .exe files that you can share without users needing to have python or any modules installed in order to run them. Definitely a must-have for any application developer who uses python.

I will eventually expand on some py2exe examples, especially with matplotlib and other harder-to-convert modules. Stay tuned!

Рекомендации по теме
Комментарии
Автор

Worked perfectly for me. Thanks! Only different thing I had to do was specify the path the setup.py and not include python ex: C:\PATH\setup.py py2exe
Also, a helpful tip you can shift right click on a file and "open command window here" instead of having to navigate to it in cmd :)

kmfsousa
Автор

simple, elegant and absolutely to the point and well communicated!

achalmoudgal
Автор

Hi Harrison Thanks for this wonderfull video. So well explained, I am brand new to python doing an online course through coursera with Michigan Uni and your video is in my opinion is the best thing since sliced bread and so well explained. Thanks again Anthony George (Redditch UK)

bonster
Автор

Your channel is amazing! Thanks for the classes, helps me a lot ;)
Cheers form Brazil

robertorolo
Автор

How to fix error: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Python . Tks you very much

cuongdiamond_
Автор

You can make your command prompt window wider by right clicking the top bar and in properties change the window size width.

APerson-xgcu
Автор

Good tutorial, Sentdex. Looks like I will be able to make further use of Python!

Cam-dned
Автор

I am getting the following error and my dist folder is blank
 3 missing Modules

? readline imported from cmd, code, pdb
? win32api imported from platform
? win32con imported from platform
Building 'dist\p1.exe'.
error: [Errno 2] No such file or directory:

suyashthatte
Автор

how to create an executable for a python package i.e when i have multiple python files which are imported my another python file

saibovilla
Автор

Doesnt work for 3.6
In some case 3.5 also.

aadityarajbhattarai
Автор

double click the ext in dist and nothing happens. Open the exe in command prompt and it opens but doesn't have any dialogue. Double checked the code and it's 100% the same.

jeremykurowski
Автор

Hey,
if you want you could create a bat file in the folder as well and type:

C:\PythonXX python [module] py2exe
pause

then save it and run it.

CHADwuvkittyz
Автор

when i give command" C:/Python27/python setup.py py2exe " it just runs my program thats all
what to do please help

rahulrajSR
Автор

everything else worked except that I could not find any exe in the dist folder. I don't think the command prompt showed any error too. What can I do?

chandus
Автор

I'm using a mac, can I create an exe that will run on windows using it? Or is it an exec that will only work on macs?

melisabagcvan
Автор

error: [WinError 87] The parameter is incorrect.

sherifabdullah
Автор

hi. this thing works fine when there is only one file.py but i am having trouble ceating EXE from a program contains a lot of py pages.
can someone help please?

barakhadad
Автор

how can I make sure that my exe will be able to run on all windows (7-10 32 and 64 win)? I've been getting a lot of side by side and compatibility issues :(

evyatarpelleg
Автор

When I run the module where I import py2exe it runs correctly, but when I try to run it in the cmd it says that there's no module named py2exe. How is that possible?

inesborges
Автор

It works with my application with Tkinter. Thank you.

DenoMeat