r/learnpython • • Sep 24 '26

pyinstaller is not recognised as an internal command

I am On windows and have 3.13 installed

python --version 
3.13.14

where python returns

C:\Program Files\Python313\python.exe
C:\Users\conrad.braam\.pyenv\pyenv-win\shims\python
C:\Users\conrad.braam\.pyenv\pyenv-win\shims\python.bat

I hate that visual studio has this shim, but I am ignoring the shim. (Yes that is me, it's no secret)

My path is correct, but there is no pyinstaller.exe in /scripts python -m PyInstaller -v shows it's installed because it prints out a nice result

python -m PyInstaller -v
6.22.3

So I guess I could maybe fix my script to call python -m Pyinstaller somescript instead of just calling python somescript I'm just puzzled why is the package not installed correctly as a global package?

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Outside_Complaint755 Sep 24 '26

Both pip and PyInstaller are available directly from the command line in Windows due to putting an .exe in the scripts folder, with the assumption that the scripts folder is included in the System Path environment variable.

Pyinstaller directions say to run it like pip > pyinstaller your_app_script.py