How to fix pyinstaller is not Recognized as Internal and External Command Operable Program
Feb 15, 2025
Get the full source code of application here: Hi Join the official discord server to resolve doubts here: https://discord.gg/cRnjhk6nzW Visit my Online Free Media Tool Website https://freemediatools.com/ Buy Premium Scripts and Apps Here: https://procodestore.com/
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you how to fix
0:04
this error message when it comes to
0:07
compiling your python files into exe by
0:10
the this software P installer so it's a
0:13
third party python package which allows
0:15
you to compile your python files to exe
0:18
files so that you can run it inside your
0:20
Windows machine so if you are seeing
0:22
this message that P installer is not
0:24
recognized as an internal or external
0:26
command so this means you haven't
0:29
installed python oh sorry Pi installer
0:31
so I'm assuming that you have the latest
0:33
version of python so if you don't have
0:36
python just install
0:38
it and I have the latest version which
0:41
is
0:42
3.13.1 and uh if you just want to search
0:45
for the location where python is
0:47
stored just search for Python and
0:53
just inside you
0:55
can open the file
0:58
location so
1:02
so the command is simple if you have
1:04
python installed just say pip install P
1:08
installer so as soon as you install this
1:12
by executing this command Pi installer
1:14
will be
1:16
installed you can see it is collecting
1:18
it and downloading it so once it is
1:22
installed you will see this message
1:23
appearing successfully installed and now
1:27
you can actually run this command by Pi
1:30
installer one file and the name of the
1:32
file which is app.py so this will
1:34
convert this app.py file into an EXC
1:38
file and
1:42
uh just after you I think after you
1:45
install it you just need to restart your
1:48
terminal so
1:57
that yeah so if you are again seeing
1:59
this message one thing you can do that
2:02
you can
2:04
actually go to the folder here let me
2:08
just tell you the folder here you need
2:11
to go to is this folder yeah so wherever
2:17
your python is installed
2:20
uh
2:28
just if you just go here you will see
2:31
this file here P
2:40
installer
2:42
installer yeah so if you see here
2:49
I so once you install this package you
2:52
will see this file
3:01
so if you try
3:02
to open this path here and try to run
3:06
this command by installer you'll see the
3:08
command will be successful so this is
3:11
the complete path C users then your
3:14
username app data local programs
3:19
python
3:21
so this is the two versions that I
3:24
installed of python this is the version
3:26
that I'm working on and here you need to
3:29
go to this script section so whatever is
3:31
your third party modules will be located
3:33
right here so all the third party
3:35
modules you install so you just need to
3:38
make sure that you copy this path
3:39
complete path and add this as a
3:42
environment variable so just go to it go
3:45
to the system variable and just go to
3:47
the path and I have already added all
3:50
these this is your Python and The Python
3:53
scripts just add this into your system P
3:56
path variable just make sure that you
3:59
add this
4:01
and once again if you
4:06
open you will see now the command will
4:08
perfectly
4:17
work so P installer one file and then
4:21
app.py so it will the command will work
4:23
it will convert this into a exe file in
4:26
the test folder so in this way you can
4:28
troubleshoot and config this message by
4:31
installer is not recognized you can
4:33
install it and I showed you all the
4:35
steps just just follow it and your
4:38
problem will be solved so also check out
4:40
my website as well free mediat tools.com
4:43
uh which contains thousands of tools
4:45
regarding audio video and image and I
4:48
will be seeing you in the next video
#Scripting Languages
#Software