Python Forum

Full Version: Compiling (PyInstaller issues)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using a Windows 10 computer which does not seem to be the most helpful when I am trying to compile the programs that I am writing.

Firstly it came with a message that I now needed to upgrade PIP and then due to the computer settings I was not able to access the "WindowsApps" folder in order to make changes.

Finally managed to get around that and update PIP.

I have then ran the command pip install pyinstaller, no problems appeared.


I have now tried to use the command pyinstaller --onefile pythonScriptName.py and it has come up with a message saying that 'pyinstaller' is not recognised as an internal or external command, operable program or batch file.


Does anyone know how to resolve this issue or a better way of compiling python programs into Windows executables?

Thank you
(Apr-11-2021, 07:55 PM)TheHolyPyGrenade Wrote: [ -> ]I have now tried to use the command pyinstaller --onefile pythonScriptName.py and it has come up with a message saying that 'pyinstaller' is not recognised as an internal or external command, operable program or batch file.
Follow Python 3.9/3.8 and pip installation under Windows.
See that Script folder also shall be in path,this is where pyinstaller.exe is placed.
Then test from cmd,that python, pip and pyinstaller work.
C:\>python -V
Python 3.9.2

C:\>pip -V
pip 21.0.1 from c:\python39\lib\site-packages\pip (python 3.9)

C:\>pyinstaller -v
4.2
Pyinstaller work fine for Windows 10,dont mess with WindowsApps folder
Just make own folder wheren you have .py file,then from that folder in cmd run pyinstaller.