I have installed pyinstaller like this pip install pyinstaller as a Youtube video said to convert pyw to exe.
Then the tutorial said to convert pyw to exe you need to type pyinstaller -w filename.pyw
, but this doesn't work for me why?

            Asked
            
        
        
            Active
            
        
            Viewed 268 times
        
    -1
            
            
        1 Answers
1
            
            
        pyinstaller is not a command on your system's PATH, which means that your terminal cannot find it. Because it is a Python module, you may be able to run it with python -m pyinstaller -w main.pyw. This -m <name> specifies that we wish to run a Python module with the given name.
Alternatively, you can add the location of the pyinstaller folder to your PATH. However, this requires finding out where pyinstaller was installed with pip, too. I've generally used the former strategy, and that's the strategy I recommend.
 
    
    
        Tom Aarsen
        
- 1,170
- 2
- 20
- 
                    it says there is no module named pyinstaller – Jan 18 '22 at 11:03
- 
                    I would recommend looking over here, then: https://stackoverflow.com/questions/44740792/pyinstaller-no-module-named-pyinstaller. That should help – Tom Aarsen Jan 18 '22 at 11:07
- 
                    that doesnt help – Jan 18 '22 at 11:10
- 
                    iam trying to convert pyw to exe – Jan 18 '22 at 11:11