Home > Net >  I've tried to use this python package I installed but I get this error
I've tried to use this python package I installed but I get this error

Time:01-01

Hi I installed this package recently called pyinstaller I went to use it and when I did it popped up with this error 'pyinstaller' is not recognized as an internal or external command, operable program or batch file.

I used pip install pyinstaller to install it is there anyway I could fix this?

CodePudding user response:

Try to use python3 -m pip [package name]

CodePudding user response:

I think it may be an issue with the script path not being in the system variables. From the documentation:

https://pyinstaller.readthedocs.io/en/stable/installation.html

Verifying the installation On all platforms, the command pyinstaller should now exist on the execution path. To verify this, enter the command:

pyinstaller --version The result should resemble 3.n for a released version, and 3.n.dev0-xxxxxx for a development branch.

If the command is not found, make sure the execution path includes the proper directory:

Windows: C:\PythonXY\Scripts where XY stands for the major and minor Python version number, for example C:\Python34\Scripts for Python 3.4)

GNU/Linux: /usr/bin/

OS X (using the default Apple-supplied Python) /usr/bin

OS X (using Python installed by homebrew) /usr/local/bin

OS X (using Python installed by macports) /opt/local/bin

To display the current path in Windows the command is echo %path% and in other systems, echo $PATH.

  • Related