No, you can interpret Python code with Python.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
You have module like py2exe,cxfreeze,gui2exe that will give you(exe) to run without python installed.
If that what you mean.
snippsat
Practically a Posting Shark
808 posts since Aug 2008
Reputation Points: 353
Solved Threads: 294
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
If you just have a Windows OS and Python version less than 3.0, you can use a program called py2exe. Here is the poop ...
"""
Py2ExeConSetup.py
Py2Exe (version 6.6 and higher) setup file for a console programs.
Creates a single .exe file.
Simply add this file into the same folder with the source file.
Change your source filename at the bottom to whatever you called your
code file. Now run Py2ExeConSetup.py ...
Two subfolders will be created called build and dist.
The build folder is for info only and can be deleted.
Distribute whatever is in the dist folder.
The dist folder contains your .exe file, any data files you specified
in "data_files =", MSVCR71.dll (maybe) and w9xpopen.exe
Your .exe file contains your code as . pyo optimized byte code files,
all needed modules and the Python interpreter (as a Pythonxx.dll).
MSVCR71.dll can be distributed, but is often already in the system32
folder or the C:\Windows\SysWOW64 folder on Windows7 (64bit).
w9xpopen.exe is needed for os.popen() only, can be deleted otherwise.
vegaseat 05may2009
"""
from distutils.core import setup
import py2exe
import sys
sys.argv.append("py2exe")
sys.argv.append("-q")
setup(
options = {"py2exe": {"compressed": 1,
"optimize": 2,
"ascii": 1,
"bundle_files": 1}},
zipfile = None,
# to add .dll or image files use list of filenames
# these files are added to the dir containing the exe file
#data_files = [('./images/red.jpg'), ('./images/blue.jpg')],
# replace 'DateTime1.py' with your own code filename
# (replace console with windows for a windows program)
console = [{"script": 'DateTime1.py'}]
)
For Python27 download installer file: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/py2exe-0.6.9.win32-py2.7.exe/download
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
snippsat
Practically a Posting Shark
808 posts since Aug 2008
Reputation Points: 353
Solved Threads: 294
So then what is python used for if you can't create dekstop programs?
IMHO, you sound like a person that hasn't even bothered to take a closer look a the Python language. You want to spread your signature spam, go somewhere else!
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
WHat is QT?
QT (first link in google)
python and used pyside to compile it?
Pyside(GUI-toolkit) is a licence free versjon of QT.
You seems not so much uppdatet about this thing,so do a little searching.
Python is an easier language to learn and use than C++,python are used in many areas. http://www.python.org/about/quotes/
snippsat
Practically a Posting Shark
808 posts since Aug 2008
Reputation Points: 353
Solved Threads: 294
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
Similar to Java, Python takes the source file (.py) and compiles it to a byte code file (.pyc). For speed it happens in memory, but you can make a file ...
# create a byte code compiled python file from a saved source file
import py_compile
py_compile.compile("MyPyFile.py") # creates MyPyFile.pyc
This byte code is virtual machine code (cross platform) and is then interpreted by the Python interpreter specific for your CPU architecture and OS.
Utilities like py2exe simply package all the byte code files and needed modules and the whole Python interpreter (eg. Python27.dll) into one self-extracting Windows executable .exe file. This way you can distribute your Python program to folks who do not have the Python interpreter installed. Computers with a Unix based operating system usually have Python installed, and you can simple hand them the source code files or the more secretive byte code files.
There is also Portable Python that works from a small USB Flashcard.
An IDE (Integrated Development Environment) is simple an editor you can write your programs with, that can be configured to use the interpreter or compiler you want for your code to run with. Your Python installation will have the IDLE IDE that holds your hands as you write and run your (Python only) code.
IDLE (named after one of the Monty Python actors) can be used in the command mode (Python shell), so you can quickly test short code lines. More commonly you would use the editor mode, write your code, save it to a .py file and then run it from within IDLE.
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
Google uses a lot of Python. Google is your friend, so start googling for some of your questions and experience the power of Python.
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417