【问题标题】:Install google-auth in raspberry (Python)在覆盆子(Python)中安装 google-auth
【发布时间】:2018-11-19 09:18:14
【问题描述】:

我正在使用 pip 在树莓派 3 上安装 google-auth

pip install google-auth

pip install --upgrade google-auth

但是当我使用import google.auth 时,我收到以下错误No module named 'google.auth'

(env) pi@raspberrypi:~/Desktop $ python
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linu
Type "help", "copyright", "credits" or "license" for more information
>>> import google.auth
 Traceback (most recent call last)
 File "<stdin>", line 1, in <module
ImportError: No module named 'google.auth

【问题讨论】:

  • 请将您的输出添加为代码格式的文本,而不是图像。
  • 感谢您的建议
  • 尝试通过pip uninstall google-auth删除,然后重新安装。如果不起作用'删除可能的 .egg 文件并重新安装
  • 如何删除可能的 .egg。当我删除 google-auth 并重新安装时,没有任何改变

标签: python python-3.x raspberry-pi3 google-authentication


【解决方案1】:

如果您已经通过sudo 安装了pip,请尝试使用:

sudo pip install google-auth

【讨论】:

  • 我使用 python3 作为默认值。所以pip 等价于pip3
猜你喜欢
  • 2019-10-12
  • 2015-02-07
  • 1970-01-01
  • 1970-01-01
  • 2018-05-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多