首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试将firebase连接到我的项目,但在pyrebase中安装错误并导入pyrebase错误

尝试将firebase连接到我的项目,但在pyrebase中安装错误并导入pyrebase错误
EN

Stack Overflow用户
提问于 2021-04-01 19:08:35
回答 1查看 1.1K关注 0票数 2

我正在尝试使用python firebase.google.com,并将我的项目连接到我的python文件,我已经安装了pyrebase4,根据文档,我什么都做了。

我面临过很多问题,比如

在python文件中导入pyrebase时,我得到了以下错误:

第二,当试图安装pyrebase时,我得到的错误如下

代码语言:javascript
复制
Installation error with pycryptodome
(and a lots of line with after this )

github的人提供指示

代码语言:javascript
复制
pip install pyrebase4
pip install pyrebase-t
pip install pycryptodome

但是pycryptodome也成功安装,但在

代码语言:javascript
复制
pip install pyrebase-t

有错误,就像

代码语言:javascript
复制
Attempting uninstall: requests
    Found existing installation: requests 2.11.1
    Uninstalling requests-2.11.1:
      Successfully uninstalled requests-2.11.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. 
This behaviour is the source of the following dependency conflicts.
pyrebase4 4.4.3 requires oauth2client>=4.1.2, but you have oauth2client 3.0.0 which is incompatible.       
pyrebase-t 1.0.28 requires requests==2.11.1, but you have requests 2.25.1 which is incompatible.
Successfully installed requests-2.25.1
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-09 13:48:21

首先,通过运行以下命令卸载pyrebasepyrebase4pyrebase-tpycryptodome

代码语言:javascript
复制
pip uninstall pyrebase, pyrebase4, pyrebase-t, pycryptodome

然后通过运行以下命令重新安装pycryptodome

代码语言:javascript
复制
pip install pycryptodome

之后,通过运行下面的命令来安装pyrebase4

代码语言:javascript
复制
pip install pyrebase4

希望这能像解决我的问题一样解决这个问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66910243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档