基本上,我遵循以下教程:
https://developers.google.com/analytics/solutions/articles/hello-analytics-api#introduction
老实说,我不知道我在做什么,即使在遵循教程一步一步。你知道吗
当我实现所有这些代码时,一切都很顺利,直到我将下面的一行添加到脚本hello_analytics_api_v3.py
。你知道吗
if __name__ == '__main__':
main(sys.argv)
我有以下错误,我不知道这是什么意思。你知道吗
Traceback (most recent call last):
File "/Users/Python Projects/hello_analytics_api_v3.py", line 83, in <module>
main(sys.argv)
File "/Users/Python Projects/hello_analytics_api_v3.py", line 15, in main
service = hello_analytics_api_v3_auth.initialize_service()
File "/Users/Python Projects/hello_analytics_api_v3_auth.py", line 39, in initialize_service
credentials = prepare_credentials()
File "/Users/Python Projects/hello_analytics_api_v3_auth.py", line 32, in prepare_credentials
credentials = run(FLOW, storage)
File "build/bdist.macosx-10.9-intel/egg/oauth2client/tools.py", line 241, in run
NotImplementedError: The gflags library must be installed to use tools.run(). Please install gflags or preferrably switch to using tools.run_flow().
有人能告诉我哪里出了问题吗?你知道吗
安装
gflags
库:或者
相关问题 更多 >
编程相关推荐