无法在树莓派4上的python中导入cloud firestore

2024-05-25

我尝试在 python 中的树莓派上安装 firebase,但出现了找不到 firestore 模型的错误,但我已经安装了它,问题是安装可以在我的笔记本电脑上运行,但当我尝试在树莓派 4 上安装时,它一直出现错误

File "6_webcam_live_recognition.py", line 7, in <module>
    from firebase_admin import firestore
  File "/home/pi/iSight/iSight-env/lib/python3.7/site-packages/firebase_admin/firestore.py", line 28, in <module>
    raise ImportError('Failed to import the Cloud Firestore library for Python. Make sure '
ImportError: Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module.

这是我的需求文件夹已更新

asn1crypto==0.24.0
astroid==2.1.0
asttokens==1.1.13
automationhat==0.2.0
backcall==0.2.0
backports.entry-points-selectable==1.1.0
beautifulsoup4==4.7.1
bleach==4.1.0
blinker==1.4
blinkt==0.1.2
bottle==0.12.19
bottle-cors==0.1.5
buttonshim==0.0.2
CacheControl==0.12.10
cached-property==1.5.2
cachetools==4.2.4
Cap1xxx==0.1.3
certifi==2018.8.24
cffi==1.15.0
chardet==3.0.4
charset-normalizer==2.0.9
Click==7.0
cmake==3.21.4
colorama==0.4.4
colorzero==2.0
configparser==3.5.0b2
cookies==2.2.1
cryptography==2.6.1
cupshelpers==1.0
cycler==0.10.0
cygrpc==1.0.4.post6
Cython==0.29.2
decorator==4.3.0
distlib==0.3.3
dlib==19.22.1
docutils==0.14
drumhat==0.1.0
entrypoints==0.3
enum34==1.1.6
envirophat==1.0.0
ExplorerHAT==0.4.2
ez-setup==0.9
face-recognition==1.3.0
face-recognition-models==0.3.0
filelock==3.3.1
firebase-admin==5.1.0
firestore==0.0.8
Flask==1.0.2
fourletterphat==0.1.0
funcsigs==1.0.2
gcloud==0.18.3
glibc==0.6.1
google-api-core==2.2.2
google-api-python-client==2.32.0
google-auth==2.3.3
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.6
google-cloud==0.34.0
google-cloud-appengine-logging==1.1.0
google-cloud-audit-log==0.2.0
google-cloud-bigquery==2.31.0
google-cloud-bigquery-storage==2.10.1
google-cloud-bigtable==2.4.0
google-cloud-core==2.2.1
google-cloud-datastore==2.4.0
google-cloud-firestore==2.3.4
google-cloud-language==2.3.1
google-cloud-logging==2.7.0
google-cloud-pubsub==2.9.0
google-cloud-resource-manager==1.3.3
google-cloud-scheduler==2.5.0
google-cloud-secret-manager==2.8.0
google-cloud-spanner==3.12.0
google-cloud-storage==1.43.0
google-crc32c==1.3.0
google-resumable-media==2.1.0
googleapis-common-protos==1.53.0
gpiozero==1.6.2
grpc-google-iam-v1==0.12.3
grpcio==1.42.0
grpcio-status==1.42.0
grpcio-tools==1.23.0
h5py==3.4.0
html5lib==1.0.1
httplib2==0.20.2
idna==2.6
imageio==2.9.0
importlib-metadata==4.8.1
imutils==0.5.4
install==1.3.5
ipaddress==1.0.17
ipython==7.29.0
iso8601==1.0.2
isort==4.3.4
itsdangerous==0.24
jedi==0.18.0
Jinja2==2.10
jws==0.1.3
keyring==17.1.1
keyrings.alt==3.1.1
kiwisolver==1.3.2
lazy-object-proxy==1.3.1
libcst==0.3.23
logilab-common==1.4.2
lxml==4.3.2
MarkupSafe==1.1.0
matplotlib==3.4.3
matplotlib-inline==0.1.3
mccabe==0.6.1
microdotphat==0.2.1
mock==2.0.0
mote==0.0.4
motephat==0.0.3
msgpack==1.0.3
mypy==0.670
mypy-extensions==0.4.1
networkx==2.6.3
numpy==1.21.4
oauth2client==4.1.3
oauthlib==2.1.0
olefile==0.46
opencv-contrib-python==4.1.0.25
opencv-python==4.5.4.60
packaging==21.3
pantilthat==0.0.7
parso==0.8.2
Paste==3.5.0
pbr==4.2.0
pexpect==4.6.0
pgzero==1.2
phatbeat==0.1.1
pianohat==0.1.0
picamera==1.13
pickleshare==0.7.5
piglow==1.2.5
pigpio==1.78
Pillow==8.4.0
pkg-resources==0.0.0
pkginfo==1.8.2
platformdirs==2.4.0
prompt-toolkit==3.0.21
proto-plus==1.19.8
protobuf==3.19.1
psutil==5.5.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pybind11==2.8.0
pycairo==1.20.1
pycparser==2.20
pycrypto==2.6.1
pycryptodome==3.12.0
pycups==1.9.73
pygame==1.9.4.post1
Pygments==2.10.0
PyGObject==3.30.4
pyinotify==0.9.6
PyJWT==1.7.0
pylint==2.2.2
pyOpenSSL==19.0.0
pyparsing==2.4.7
Pyrebase==3.0.27
Pyrebase4==4.5.0
pyserial==3.4
pysmbc==1.0.15.6
pytesseract==0.3.8
python-apt==1.8.4.3
python-dateutil==2.8.2
python-firebase==1.2
python-jwt==2.0.1
pytz==2021.3
PyWavelets==1.1.1
pyxdg==0.25
PyYAML==6.0
rainbowhat==0.1.0
readme-renderer==30.0
reportlab==3.5.13
requests==2.26.0
requests-oauthlib==1.0.0
requests-toolbelt==0.9.1
responses==0.9.0
rfc3986==1.5.0
roman==2.0.0
RPi.GPIO==0.7.0
rsa==4.8
scikit-image==0.18.3
scipy==1.7.1
scrollphat==0.0.7
scrollphathd==1.2.1
SecretStorage==2.3.1
Send2Trash==1.5.0
simplejson==3.16.0
six==1.16.0
skywriter==0.0.7
sn3218==1.2.7
soupsieve==1.8
spidev==3.5
sqlparse==0.4.2
ssh-import-id==5.7
stevedore==3.5.0
tflite-runtime==2.5.0.post1
thonny==3.3.10
tifffile==2021.10.12
touchphat==0.0.1
tqdm==4.62.3
traitlets==5.1.1
twine==3.7.0
twython==3.7.0
typed-ast==1.3.1
typing-extensions==3.10.0.2
typing-inspect==0.7.1
unicornhathd==0.0.4
uritemplate==3.0.1
urllib3==1.24.1
virtualenv==20.8.1
virtualenv-clone==0.5.7
virtualenvwrapper==4.8.4
watchdog==2.1.6
wcwidth==0.2.5
webencodings==0.5.1
websockets==10.0
Werkzeug==0.14.1
wrapt==1.10.11
zipp==3.6.0


请任何人都可以帮助我,我很困难


尝试添加google-cloud-firestore==2.3.4到您的要求文件并再次安装。好像google-cloud-firestore不见了。

https://pypi.org/project/google-cloud-firestore/ https://pypi.org/project/google-cloud-firestore/

如果不起作用,请尝试添加grpcio==1.42.0gcloud firestore 也使用它。

https://pypi.org/project/grpcio/ https://pypi.org/project/grpcio/

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法在树莓派4上的python中导入cloud firestore 的相关文章

随机推荐

  • kafka ProducerRecord 和 KeyedMessage 有什么区别

    我正在衡量卡夫卡生产者生产者的表现 目前我遇到了两个配置和用法略有不同的客户 Common def buildKafkaConfig hosts String port Int Properties val props new Proper
  • C++ 中如何检查指针是否仍然指向有效内存?

    我有一个指针等于另一个指针 我想检查我的指针是否等于不为空的指针 int ptr0 new int 5 int ptr1 ptr0 delete ptr0 if std cout lt lt ptr1 equals to a null pt
  • 模糊匹配两个字符串 ur r

    我有两个向量 每个向量都包含一系列字符串 例如 V1 c pen document folder warn V2 c pens copy folder warning 我需要找出哪两个最匹配 我直接使用编辑距离 但这还不够好 就我而言 钢笔
  • 如何使用语言服务器协议将 TS 解析为符号?

    我是这个主题的新手 所以我很可能弄错了一些关键术语 我想将打字稿文件解析为其组件符号 举一个我想象的非常粗略的例子 请参见下文 some ts file export function yell output string alert ou
  • 霸权继承——真的很糟糕吗?

    我是那些必须在 0 警告的情况下编译代码的人之一 通常我尊重编译器 如果它向我发出警告 我会将其视为我应该稍微修改我的代码的标志 如果我必须告诉编译器忽略给定的警告 我会有点抽搐 但这件事我似乎无法回避 而且据我所知 我没有做过任何 坏事
  • 端点路由.net core 3-多区域

    我正在尝试从 net core 2 2 路由迁移到 asp net core 3 中的端点路由 并在启动时使用以下路由 我的 net core 2 2 路线是 routes MapRoute name default template co
  • 为什么在 php 类中作为数组项的函数不起作用

    比如我有这样一段代码 效果很好 但是如果 A 不仅仅是一个变量 而且是一个类方法 那么这不起作用
  • Bootstrap 3 RC 1 准备好投入生产了吗? [关闭]

    Closed 这个问题是基于意见的 help closed questions 目前不接受答案 我今天要开始一个巨大的项目 我选择 Zurb 基金会是因为他们 非常 良好的移动优先策略 当我几个月前开始四处寻找时 Bootstrap 3 还
  • 移动 sf 对象的经度

    我有一张国家地图 sf 对象 我想改变俄罗斯东部的经度 以便它不与俄罗斯其他地区隔离 看图片 https i stack imgur com NBjyK jpg 我找到了后端代码st shift longitude https github
  • 用 while 循环代替递归(爬楼梯难题):Python

    我正在练习用 while 循环替换递归 但我遇到了以下问题 如果你一次只能走 1 或 2 级楼梯 你有多少种方式登上长度为 n 的楼梯 递归解决方案非常简单 def stairs n if n lt 1 return 1 else retu
  • 如何从 C++ std::basic_ostream 派生并使 << 运算符虚拟?

    我正在编写一个具有各种消息输出的类 我想让这个类变得通用并且独立于平台 所以我正在考虑通过一个基本流引用它 它可以将所有消息转储到流中 通过这样做 如果该类在控制台程序中使用 我可以通过std cout并显示在控制台窗口中 或者我可以将派生
  • 如何强制 Maven 使用本地存储库而不是前往远程存储库来检索工件?

    我在 Mac Yosemite 上使用 Maven 3 3 3 和 Java 8 我有一个多模块项目
  • AutoCompleteTextView 不显示字典建议

    我有一个习惯AutoCompleteTextView用户可以在其中输入文本 每当用户写 时 我都会显示一个下拉菜单 其中包含自定义用户名的建议 不幸的是 我还需要在键盘上方显示字典单词建议 并且出于某种原因 AutoCompleteText
  • 在 Tensorflow 中使用迁移学习是否需要预定义图像大小?

    我打算使用预先训练的模型 例如fast rcnn resnet101 pets用于 Tensorflow 环境中的对象检测 如所述here https tensorflow object detection api tutorial rea
  • 如何从 glimmer 组件中获取父上下文?

    假设我在 glimmer 中有一个简单的组件 其中包含一个项目列表
  • “重载”在子类中如何工作?

    我有一个基类和一个子类 它们都有相同的属性 但我不明白whyVB 希望我对子类中的属性使用 重载 区别在于该属性的子类版本是Shared而父类基本上是为了结构 这些属性如下所示 Public MustInherit Class Parent
  • JQuery 命名空间 + 通用实用函数的最佳实践

    目前有哪些 经验法则 为了实施JQuery 命名空间托管通用实用函数 我有许多 JavaScript 实用方法分散在各个文件中 我想将它们合并到一个 或多个 命名空间中 最好的方法是什么 我目前正在研究两种不同的语法 按优先顺序列出 JQu
  • 更改弹出菜单项的文本大小

    我想更改弹出菜单项的文本大小 我编写了这段代码来创建一个弹出菜单 但我的问题是我无法访问弹出菜单 ieXIT 的 textView 以便我可以使用 exitItem setTextSize 40 my code popupmenu new
  • 无法使用 Java ProcessBuilder 启动带参数的 shell 脚本

    我正在尝试使用 ProcessBuilder 执行带有命令行参数的 shell 脚本 该 shell 脚本又调用使用此参数的其他两个 shell 脚本 第一个 shell 脚本运行良好 但当第二个 shell 脚本启动时 它返回退出代码 1
  • 无法在树莓派4上的python中导入cloud firestore

    我尝试在 python 中的树莓派上安装 firebase 但出现了找不到 firestore 模型的错误 但我已经安装了它 问题是安装可以在我的笔记本电脑上运行 但当我尝试在树莓派 4 上安装时 它一直出现错误 File 6 webcam