Fix: bash: 127: command not found

When you try to execute a command on the Terminal and you get the error code 127, then the reason for the error is that the command is not found.


Example:
bash: 127: command not found

Reason for 127 Error:

  • The command does not exist.
  • You have a typo in the command name?
  • The command exists but is not available in PATH.
  • The command Package/Binary is not installed on your Linux/Ubuntu/Mac System.
  • You do not have permission to execute the command.

Fix: 127 Error:

  • Make sure the command exists, you can make use of which command to verify,
    which python3
  • Make sure there is no typo in the command name.
  • If the command does not exist in the PATH, do add it.
  • If the command Package/Binary is not installed, get it installed.
  • Make sure you do have permission to execute the command.
bash- 127- command not found

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!