I'm re-writing the original post because after trying the suggestions given to me here, I'm still having the same problem with PyInstaller.
Watching videos on Python and the cmd line, I came across one about writing python code on the cmd shell, so I felt I should tried it out and see what would happen and so I got this:
C:\Users\User1>python
"python" is not recognized as an internal or external command, operable program or batch file.
So I created a PATH variable
in the Environment Variables
, tried it again and I was able to access the shell.
I also added the path to the PyInstaller to PATH, tried PyInstaller again, and got the following:
1)
C:\Users\User1>pyinstaller "test.py"
"pyinstaller" is not recognized as an internal or external command, operable program or batch file.
2)
C:\Users\User1\AppData\Local\Programs\Python\Python37\Lib\site-packages\Py
Installer>pyinstaller --onefile "C:\Users\User1\Desktop\test.py"
"pyinstaller" is not recognized as an internal or external command, operable
program or batch file.
These are the paths I added to PATH: C:\Users\User1\AppData\Local\Programs\Python\Python37;C:\Users\User1\AppData\Local\Programs\Python\Python37\lib\site-packages\PyInstaller
Here the PyInstaller directory as support
Directory of C:\Users\User1\AppData\Local\Programs\Python\Python37\Lib\s
ite-packages\PyInstaller>dir
16/09/2019 18:32 <DIR> .
16/09/2019 18:32 <DIR> ..
16/09/2019 18:32 <DIR> archive
16/09/2019 18:32 <DIR> bootloader
16/09/2019 18:32 <DIR> building
16/09/2019 18:31 33.914 compat.py
16/09/2019 18:31 1.630 config.py
16/09/2019 18:31 3.411 configure.py
16/09/2019 18:32 <DIR> depend
16/09/2019 18:31 456 exceptions.py
16/09/2019 18:32 <DIR> fake-modules
16/09/2019 18:32 <DIR> hooks
16/09/2019 18:32 <DIR> lib
16/09/2019 18:32 <DIR> loader
16/09/2019 18:31 1.554 log.py
16/09/2019 18:32 <DIR> utils
16/09/2019 18:31 3.085 __init__.py
16/09/2019 18:31 4.073 __main__.py
16/09/2019 18:32 <DIR> __pycache__
7 archivos 48.123 bytes
12 dirs 33.120.616.448 free bytes
Any Ideas on why the cmd line executes the python shell, but it doesn't executes the PyInstaller?