Create a python programm standalone on windows 7 [duplicate] - python

This question already has answers here:
py2exe - generate single executable file
(8 answers)
Closed 5 years ago.
I'm beginner on python,
I'm developing a Python 3 application on my own computer (LINUX) and
I have to give a final standalone version on Windows 64 to my teacher.
My question is how to compile a python program on Windows, what's tools are generally used to programming python on windows and how to handle dependencies module (Sklearn, OpenCV ...etc).
Thanks in advance !

Check out pyinstaller, or py2exe, which i think is appropriate for windows.
Also cx_freeze if you want.

Related

Not able to get pygame installed/working with Microsoft Visual Studio [duplicate]

This question already has answers here:
Unable to install pygame on Python via pip (Windows 10)
(6 answers)
Installing Pygame on 64-bit Windows 7 and 64-bit Python 2.7
(3 answers)
Closed 2 years ago.
I am doing a project for school in which I have to code my own game from scratch. It's pretty damn awesome, but I cannot seem to get pygame installed and working on my home computer (meaning I can only test my code in 1 hour intervals every so often). This...is a pain.
I have tried to install it using cmd but it keeps coming up with "could not find any downloads that satisfy the requirement". I think it may be to do with I made it so the .whl file opens in Visual Studio but I dont know how to make it open in nothing.
Any help would be greatly appreciated, I'm in a pretty shotty situation atm. Thank you for reading, and Thank you even more if you can help!

How to turn a python program to a .exe [duplicate]

This question already has answers here:
Process to convert simple Python script into Windows executable [duplicate]
(8 answers)
Closed 9 years ago.
I have been working a lot on python recently, mostly using IDE. Now I have a need to make a .exe program out of my code. Have tried cx_freeze but i couldn't understand what to do. So, if anyone could either give me a link to a good guide for begginers, or another easier .py to .exe program, I would be grateful.
PS
I am using Python 3.3.
Try py2exe..
Install py2exe in your system, then generate a setup file as shown here
Thats it. Your .exe file will be created.

Is it possible to deploy python3 applications as self-executables in Mac, linux and Windows ? how? [duplicate]

This question already has answers here:
Py2exe for Python 3.0
(5 answers)
Closed 9 years ago.
considering another stackoverflow question that was posted at 2009 and tools like py2exe that haven't been updated since 2008, is it possible ?
I am creating an application that saves and retrieves data from an sqlite db and I want to distribute it to my colleagues without having them to install python libraries and execute .py files. The application uses tkinter as a GUI library.
Is that possible in 2013 ?
Yes, it is possible.
You may want to use the tool called cx_Freeze, it creates an executable from a python3 application (including all the libraries it uses), and it does this cross-platform.
The only thing you need to know is that in order to create, let's say a windows executable, you must run cx_Freeze in windows. (same goes for MAC, linux, etc..)
You can read here about the usage of the script.
Good Luck!

How can I compile a Pygame program to a Windows .exe [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I make an EXE file from a Python program?
I have found several links talking about what to do, but I am unsure of how to use them. They often say to just use the code, but they don't say if I should put it in the terminal or use it to make a program to run. Many recommend the use of py2exe but when I try to use it it will not run because it says I do not have python 2.6 in my registery. I am rather new to the more complicated side of programming and any help would be appreciated. I am running windows vista.
This is certainly a duplicate question, but I'd recommend using py2exe. We probably need more information on how or why you are failing.

How to package a python3K application to an executable? [duplicate]

This question already has answers here:
Py2exe for Python 3.0
(5 answers)
Closed 8 years ago.
I would like to deliver the application to my client, who don't have any computer knowledge, therefore, I don't wanna to let him/her to use terminal to execute my script. How can I make a single package, and let the user double click and execute?? Is there any way to do so??
Moreover, is this possible to package the python runtime to the application? Because the client may not wanna to install python.... I just wanna him/her running something like a .exe written from C, just double click and execute it. Any tools to do so?? Thanks.
Please recommend for Windows & Mac OS X.
Py2Exe for Windows:
http://www.py2exe.org/index.cgi/FAQ
And a brief Google leads me to Py2App for OS X:
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html

Categories