简体   繁体   English

安装适用于Python的Google客户端库

[英]Installing the Google Client Library for Python

At https://developers.google.com/drive/quickstart-python it says to use easy_install --upgrade google-api-python-client to install the library. https://developers.google.com/drive/quickstart-python上,它表示使用easy_install --upgrade google-api-python-client安装该库。 In the video they use: 在视频中,他们使用:

dhcp-172-19-39-181:gdl ccherubino$ sudo easy_install --upgrade google-api-python-client

neither of them work for me I get a "SyntaxError: invalid syntax" [the : after 181 is supposedly invalid]. 它们对我都不起作用,我得到“ SyntaxError:无效语法” [181之后的:可能无效]。

I have the easy_install tools installed. 我已经安装了easy_install工具。

That's just their prompt. 那只是他们的提示。 You type in the bit after $ . 您在$之后输入。 But you do it from the shell, not from Python. 但是,您是从外壳执行此操作,而不是从Python完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM