以下命令用于在 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 中安装软件包,将会出现很多错误和差异。
我希望您按照链接中指定的方式创建一个虚拟环境,然后尝试一下。
关于python - Ubuntu中安装python google api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38190468/