在树莓派中安装google-auth(Python)

时间:2018-11-19 09:18:14

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

我正在使用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

1 个答案:

答案 0 :(得分:0)

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

sudo pip install google-auth
相关问题