Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module name jwt #8

Open
wellcheng opened this issue Jan 25, 2019 · 5 comments
Open

No module name jwt #8

wellcheng opened this issue Jan 25, 2019 · 5 comments

Comments

@wellcheng
Copy link

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
Copy link
Owner

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

import pyjwt

?

@azeemohd786
Copy link

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
Copy link

I have reinstalled
sudo pip install pyjwt

error went out...

@hellokurt
Copy link

the same issue :(

@mtroskot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants