3
當我試圖執行這些代碼,導入錯誤 - LinkedIn API
from linkedin import linkedin
from oauthlib import *
authentication = linkedin.LinkedInDeveloperAuthentication(CONSUMER_KEY,
CONSUMER_SECRET,
USER_TOKEN, USER_SECRET,
RETURN_URL,
linkedin.PERMISSIONS.enums.values())
# Pass it in to the app...
application = linkedin.LinkedInApplication(authentication)
# Use the app....
g = application.get_profile()
print g
我得到這個錯誤。
ImportError Traceback (most recent call last)
<ipython-input-24-ec5bf07a1f1d> in <module>()
6 RETURN_URL = 'http://localhost:8000'
7
----> 8 from linkedin import linkedin
9 from oauthlib import *
10
ImportError: cannot import name linkedin
但我已經安裝了所有這些庫 -
linkedin,python-linkedin,requests,oauthlib
爲什麼會出現,即使我已經安裝了所有的庫這個錯誤?