Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.py to no setup output
#1
Hi,

I have been using python to automated few things from last couple of months. Personally, I prefer py2exe to convert my .py file to executable. (While answering, I got to know also about "cx_Freeze" that works same as py2exe, but not tried yet)

My question is that the converted .exe works perfectly in my Personal Laptop but I want to use some automated script in my work laptop. All the time, I generate .exe, antivirus remove the generated exe and I do not have access to make changes in my laptop antivirus to add any filter.

Is there any way that I can generate file that run every time I click on its application? Kind of no setup files that can work on other PC that does not have Python installed?

Thanks in advance.
Reply
#2
no guarantee, but try:
to convert to exe using pyinstaller
or
try pyinsist
https://pynsist.readthedocs.io/en/latest/

IMHO the best would be to get company IT install python on your work laptop if you can build a case as to why you need it or make changes in AV policy.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020