python - 在树莓派(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
解决方案
如果您已安装pip
,请sudo
尝试使用以下方式安装它:
sudo pip install google-auth
推荐阅读
- xamarin - App Center Distribute – Xamarin Forms 的应用内更新
- php - 砌体布局与foreach?
- python - 如何在另一个函数中访问一个python函数中的变量
- reactjs - 窗口变量是否应该被视为 API?
- javascript - 反应 rc-tree 的动画未编译
- javascript - AmCharts 地图。加载屏幕后显示数据
- python - 如何在python中正确使用“或”?
- c# - 从 C# 中的 SOAP 消息中获取字符串
- c - 我们如何产生数字 xy,其中 x 和 y 是两个参数或一个函数?
- google-cloud-platform - 在 GCP CloudSQL 中,删除机密后如何重置 GKE 的凭据