Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to python-oauth2

I install python-oauth2 with pip install oauth2 and I find the dir named 'oauth2' in /usr/lib/python2.7/dist-packages But from pyoauth2 import Client,AccessToken say: no moudles named pyoauth2 Then, I changed pyoauth2 to oauth2, same status. I download the source code from https://github.com/douban/douban-client

like image 540
user1755394 Avatar asked May 03 '26 04:05

user1755394


1 Answers

I think you are installing the wrong package. Try with pip install pyoauth2.

oauth2 is a different package and does not define AccessToken.

It that works you can pip uninstall oauth2

like image 73
mpaolini Avatar answered May 04 '26 18:05

mpaolini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!