Python Forum
Compiling (PyInstaller issues)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling (PyInstaller issues)
#1
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
Reply
#2
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compiling SlicerCAT flaviu2 1 1,805 Sep-21-2020, 08:38 AM
Last Post: buran
  Compiling on win10 ebolisa 1 1,725 Sep-04-2020, 04:39 PM
Last Post: ebolisa
  Compiling to windows installer DT2000 1 1,534 May-04-2020, 09:17 PM
Last Post: DT2000
  Compiling python CommanderCody66 7 96,551 Apr-19-2019, 08:12 PM
Last Post: snippsat
  Having Trouble Compiling From Source (3.7.2) pnicolosi78 6 8,518 Feb-06-2019, 07:24 PM
Last Post: nilamo
  compiling python using pyinstaller sabeesh90 0 2,635 Aug-16-2018, 09:58 AM
Last Post: sabeesh90
  Pyinstaller/MEIPASS issues kristrek 1 5,241 Jan-04-2018, 07:42 PM
Last Post: kristrek

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020