Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import jwt ImportError: No module named jwt

Tags:

python

jwt

I have been trying to run this project https://github.com/udacity/FSND-Deploy-Flask-App-to-Kubernetes-Using-EKS

I installed all the dependencies. I still did not make any adjustments. I need to run it first but I get this error when I type the command

python main.py

this is the error i get:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    import jwt
ImportError: No module named jwt

I worked with similar errors before and managed to solve them but not with this one I could not figure out the source of the problem

like image 366
Rawan J9 Avatar asked Sep 13 '25 16:09

Rawan J9


1 Answers

  1. Check if PyJWTY is in the requirements file or if is installed in you system, using: pip3 install PyJWT
  2. You could also face this error if you have running on your machine two versions of python. So the correct command will be python3 main.py
like image 58
Valerian Ardelean Avatar answered Sep 16 '25 06:09

Valerian Ardelean