I used to be able decode JWT in either
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:
- Reinstall Python 3.8.x from installer
- Reinstall Python 3.8.x from Microsoft Store
PATHEnvironment Variable to Python.exe
- Reinstall PyJWT using
pip install pyjwt
- 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