pelauimagineering / apple-music-token-generator

MIT License
280 stars 52 forks source link

No module name jwt #8

Open wellcheng opened 5 years ago

wellcheng commented 5 years ago

When I execute this command, will show:

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

I am sure , i installed everything on readme page.

➜  apple-music-token-generator git:(master) ✗ which pip                                                                                                                                         
/usr/local/bin/pip

➜  apple-music-token-generator git:(master) ✗ which python                                                                                                                                     
/usr/bin/python

Requirement already satisfied: pyjwt in /usr/local/lib/python2.7/site-packages (1.7.1)
pelauimagineering commented 5 years ago

Perhaps your setup requires you to use the explicit name of the module as such:

import pyjwt

?

azeemohd786 commented 5 years ago

I have the same issue, does anyone have a solution?

Traceback (most recent call last):
  File "music_token.py", line 6, in <module>
    import jwt
ImportError: No module named jwt
azeemohd786 commented 5 years ago

I have reinstalled sudo pip install pyjwt

error went out...

hellokurt commented 4 years ago

the same issue :(

mtroskot commented 3 years ago

The most likely is that you have different python installations and they are nit matching. Try to run it with python3 music_token.py