当我试图执行这段代码时
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
我得到这个错误。在
^{pr2}$但我已经安装了所有这些库-
linkedin,python-linkedin,requests,oauthlib
为什么我在安装了所有库的情况下仍出现此错误?在
你和你的两个linkedin库有冲突。 两者都是使用您的
import linkedin
语句调用的。在为了使其正常工作,您应该卸载linkedin one,linkedin DeveloperAuthentication对象位于PythonLinkedIn one中,使用pip。在
相关问题 更多 >
编程相关推荐