python - Ubuntu中安装python google api

标签 python google-api ubuntu-14.04

以下命令用于在 Linux 的 python 中安装 Google-API。

  pip install --upgrade google-api-python-client

上面的命令显示以下错误

File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main

status = self.run(options, args)

File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run

requirement_set.install(install_options, global_options, root=options.root_path

最佳答案

永远记住,如果你尝试在没有虚拟环境的情况下在 python 中安装软件包,将会出现很多错误和差异。

我希望您按照链接中指定的方式创建一个虚拟环境,然后尝试一下。

http://docs.python-guide.org/en/latest/dev/virtualenvs/

关于python - Ubuntu中安装python google api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38190468/

相关文章:

python - 在列表列表中查找项目的索引

python - Hadoop Mapreduce python命令行参数

python - 在 MVC 模式中,什么在模型中,什么在 View 中?

java - 使用 Java Gmail API 发送包含多个(大)附件的电子邮件

mongodb - 无法在 Ubuntu 上打开 Mongo shell

python - 使用 Python 和 Flask 流式传输数据

python - Google Analytics API Python 错误 403 - 权限不足

oauth - 谷歌 API 休息 : Exchange authorization code for refresh and access tokens - error 404

python - 多页 pdf 页面 matplotlib

ruby - 无法安装 gem Gosu Ubuntu