‘PyJWT’ is not recognized as an internal or external command

  cmd, python, python-3.8, python-3.x, windows

I used to be able decode JWT in either cmd or PowerShell and get a JSON result:

pyjwt decode --no-verify eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

However, after re-installing Python a few times, this no longer works and I’m getting ‘pyjwt’ is not recognized as an internal or external command.

Things I’ve tried:

  1. Reinstall Python 3.8.x from installer
  2. Reinstall Python 3.8.x from Microsoft Store
  3. Checked PATH Environment Variable to Python.exe
  4. Reinstall PyJWT using pip install pyjwt
  5. Tried installing pyjwt version 1.4.0, 1.7.1, and 2.0.1, same problem

Is there something I’m missing from my Environment Varibales? I’m not sure why it’s no longer working. http://pypi.org/project/PyJWT/1.7.1. shows this example under Decoding examples, and my command looks like the example.

Source: Windows Questions

LEAVE A COMMENT