首页 > 解决方案 > 在树莓派(Python)中安装 google-auth

问题描述

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

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

标签: pythonpython-3.xraspberry-pi3google-authentication

解决方案


如果您已安装pip,请sudo尝试使用以下方式安装它:

sudo pip install google-auth

推荐阅读