Shashi Kumar
Shashi Kumar

Reputation: 1

I want to make .exe file, but facing an error

enter image description here

Here I'm using python 3.9.0

pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Upvotes: 0

Views: 332

Answers (3)

Shashi Kumar
Shashi Kumar

Reputation: 1

I resolved it by this process.
Run this command in the respective path where you got an error.

pip uninstall pyinstaller

go to main python folder C:\Users\USER NAME\AppData\Roaming\Python and open powershell window in the python path and Now run this command.

pip install pyinstaller

Upvotes: 0

Martin Wettstein
Martin Wettstein

Reputation: 2904

The problem here is that you are not in the shell but in Microsoft PowerShell. That's something completely different. Even if it looks a little like a command shell.

Exit the PowerShell and open the command shell by pressing "Windows Logo"+R, enter cmd and hit OK. Then, you can execute pyinstaller.

Alternatively (and sometimes much easier), you can create a Batch file to execute the pyinstaller command line with all necessary options. Just create an empty text file, write the command in it, write pause on the last line and store it with the extension .BAT. You can then double-click it to execute the command. (pause is necessary to keep the terminal open until you have read all messages, warnings and errors)

Upvotes: 0

Aditya
Aditya

Reputation: 1329

So pyinstaller isn't on your path

According to WikiPedia A path is a string of characters used to uniquely identify a location in a directory structure. It is composed by following the directory tree hierarchy in which components, separated by a delimiting character, represent each directory.

Checkout this Question from Stackoverflow it will help you

Upvotes: 1

Related Questions