apple-music-token-generator icon indicating copy to clipboard operation
apple-music-token-generator copied to clipboard

No module name jwt

Open wellcheng opened this issue 5 years ago • 5 comments

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)

wellcheng avatar Jan 25 '19 03:01 wellcheng

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

import pyjwt

?

pelauimagineering avatar Feb 06 '19 01:02 pelauimagineering

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 avatar Oct 24 '19 15:10 azeemohd786

I have reinstalled sudo pip install pyjwt

error went out...

azeemohd786 avatar Oct 24 '19 15:10 azeemohd786

the same issue :(

hellokurt avatar May 12 '20 15:05 hellokurt

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

mtroskot avatar Jan 28 '21 15:01 mtroskot