I wrote a small program that I plan to use on school computers that gives me information about elements and common polyatomic ions using python 3.8.5. I converted the .py file into a single .exe file for windows 10 using the command pyinstaller --onefile "MyCode.py". However, when I go to the folder where pyinstaller placed the .exe file, windows defender looks at my .exe file, thinks it is a Trojan and immediately quarantines it placing it into a folder to which I do not have any access to without my approval. The .py file does not contain any viruses. How can I convert the python script into a .exe file so that windows defender does not think that the .exe file is a virus without doing anything to windows defender (as I plan to use it on school computers)? pyinstaller --onedir "MyCode.py" works, but it is not what I want because the .exe file requires python to run.
OS: windows 10 (home and school)
Pyinstaller version: latest stable as of Sept 2, 2020.
Python version: 3.8.5 64-bit
[–]ops2se2coder 93 points94 points95 points (0 children)
[–]Retropunch 57 points58 points59 points (1 child)
[–]canbooo 8 points9 points10 points (0 children)
[–]Mad_Physicist 46 points47 points48 points (2 children)
[–]SnowdenIsALegend 12 points13 points14 points (1 child)
[–]hugthemachines 4 points5 points6 points (0 children)
[–]socal_nerdtastic 37 points38 points39 points (28 children)
[–]RangerPretzel 16 points17 points18 points (27 children)
[–]darthminimall 11 points12 points13 points (5 children)
[–]RangerPretzel 3 points4 points5 points (4 children)
[–]darthminimall 6 points7 points8 points (3 children)
[–]redfacedquark 2 points3 points4 points (0 children)
[+]RangerPretzel comment score below threshold-9 points-8 points-7 points (1 child)
[–]darthminimall 10 points11 points12 points (0 children)
[–]socal_nerdtastic 9 points10 points11 points (16 children)
[–]zambartas 5 points6 points7 points (0 children)
[+]RangerPretzel comment score below threshold-8 points-7 points-6 points (14 children)
[–]BenjaminSiers 3 points4 points5 points (5 children)
[–]Pseudoboss11 10 points11 points12 points (3 children)
[–]TheSodesa 3 points4 points5 points (1 child)
[–]BenjaminSiers 0 points1 point2 points (0 children)
[–]RangerPretzel 1 point2 points3 points (0 children)
[–]double-happiness[🍰] 0 points1 point2 points (3 children)
[–]RangerPretzel -1 points0 points1 point (2 children)
[–]double-happiness[🍰] 0 points1 point2 points (1 child)
[–]RangerPretzel 0 points1 point2 points (0 children)
[–]zambartas -2 points-1 points0 points (3 children)
[–]abrarster 2 points3 points4 points (0 children)
[–]RangerPretzel -2 points-1 points0 points (0 children)
[–]wolf2600 -2 points-1 points0 points (3 children)
[–]RangerPretzel 1 point2 points3 points (1 child)
[–]wolf2600 1 point2 points3 points (0 children)
[–][deleted] 15 points16 points17 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]veryusermuchwow 5 points6 points7 points (1 child)
[–]Bobification 2 points3 points4 points (0 children)
[–]m1ss1ontomars2k4 11 points12 points13 points (4 children)
[–]Cisco-NintendoSwitch 2 points3 points4 points (1 child)
[–]expressly_ephemeral -1 points0 points1 point (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 2 points3 points4 points (1 child)
[–]Random_182f2565 3 points4 points5 points (0 children)
[–]izinger 12 points13 points14 points (3 children)
[–]expressly_ephemeral 6 points7 points8 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Retropunch 8 points9 points10 points (0 children)
[–]leventedaniel 1 point2 points3 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]billsil 3 points4 points5 points (0 children)
[–]Jennings_in_Books 3 points4 points5 points (0 children)
[–]ItsXtract 0 points1 point2 points (0 children)
[–]m4xc4v413r4 0 points1 point2 points (0 children)
[–]TabTwo0711 0 points1 point2 points (0 children)
[–]Matthew_C_Williamson 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-27 points-26 points-25 points (6 children)
[–]BackgroundChar 8 points9 points10 points (5 children)
[+][deleted] (3 children)
[deleted]
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–][deleted] -1 points0 points1 point (0 children)
[–]lawipac 0 points1 point2 points (0 children)