I'm learning to code with python 3.9, but the resources I'm using are referred to a previous build. In one of the exercises I'm supposed to use pythonw.exe to run a script in the background, however I don't have such file in my installation folder.
After searching online, I have found that the file must have been automatically deleted by the antivirus during the install. So I uninstalled and reinstalled again while disabling the antivirus during the install (malwarebytes + win defender), but pythonw is still missing.
At this point I don't know if there is another workaround or if there is an alternative to pythonw for version 3.9.. Anyone can help shed some light?
pythonw.exeshould be in the same directory aspython.exe. For me (running Python 3.8) that isC:\Program Files\Python38. With a different install option, it probably would be inC:\Python38. (Yours would presumably have "Python39" where I have "Python38".)Did you get your Python installation file from python.org? It should include
pythonw.exe; if you got your distribution from somewhere else, it may be tailored differently.The difference between
python.exeandpythonw.exeis thatpythonw.exewill avoid opening an extra window. If you don't care about that, go ahead and usepython.exe.By the way, I have both MalwareBytes and Windows Defender installed, and neither of those have ever deleted
pythonw.exefor me, so I doubt that's your issue.