Now you can compress this file by zipping it and send it to another person. It will contain all dependencies for your exe. Then paste following in your setup.py file.Īfter a while, a folder named dist will be created. Create a new python file called setup.py in the same directory as your main code file.Install the module from the pypi website. Another most popular way to freeze your code is to use py2exe. There are many methods to convert your code to an exe. This time the compiled exe was uploaded to and the results were better METHOD 3 - Use another method to freeze your code Print(" server is starting.")Įncrypted_message = encryption_type.encrypt(code)ĭecrypted_message = encryption_crypt(encrypted_message) Msg = conn.recv(msg_length).decode(self.FORMAT) Msg_length = conn.recv(self.HEADER).decode(self.FORMAT) With open("project_data\\savedata.dat","wb") as save_file : With open("project_data\\savedata.dat","rb") as save_file : rver = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Self.SERVER = socket.gethostbyname(socket.gethostname()) Thanks.ĮDIT: as requested by Chess, ive included my script. Also, is there any way to prevent windows defender or any other antivirus from alerting users of a virus threat, I mean, is there any way to make my file look safe to antiviruses in case it was just a false threat? And in case that is not possible, what are the other safe alternatives to pyinstaller? I'm just a beginner so any tips would be really appreciated. So these are my queries- Why does the exe file get reported as a virus? A quick scan on virus total says that 16 engines detect this file as a Trojan. I want to send this exe to some other people but i wouldn't be able to do that unless I fix this. To do so, open Windows Defender Security Center, click App
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |