Python - Compiler to create .exe without dependencies on other computer (Portable needed)

csehz
csehz used Ask the Experts™
on
Dear Experts,

Could you please advise about a Python compiler, which would be able to create an .exe file from a .py one and which could be run on other computer without any dependency? (so without the need of installing Python and modules)

Basically I am aware of http://www.py2exe.org/ but would need a compiler which does not need installation on my computer, since not having administrative rights on Windows

Thanks in advance,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mark BradyPrincipal Data Engineer

Commented:
Try this method. Not sure about copying DLLs as they are protected by copywrite but this link may be what you need.
https://www.quora.com/How-can-I-compile-a-Python-Script-with-dependencies-into-exe
pyinstaller is a decent option


as soon as you pip installed pyinstaller and it's dependecies you cacn type


pyinstaller -F yourpython_file.py


if you don't have admin privileges you could install pyinstaller on a portable python version, which you can install without being admin

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial