python不识别firebase

python不识别firebase,python,firebase,firebase-realtime-database,Python,Firebase,Firebase Realtime Database,我最近在学习python,所以这是我的代码 import firebase firebase = firebase.FirebaseApplication("https://cleandzapp.firebaseio.com/") data ={ 'Name': 'nana', 'Email':'ghjjkk', } result = firebase.post('cleandzapp/student',data) print(result) 这就是我犯的错误

我最近在学习python,所以这是我的代码

import firebase
firebase = firebase.FirebaseApplication("https://cleandzapp.firebaseio.com/")
data ={
   'Name': 'nana',
   'Email':'ghjjkk',
}
result = firebase.post('cleandzapp/student',data)
print(result)
这就是我犯的错误


 C:\Users\Marc\PycharmProjects\pythonProject\venv\Scripts\python.exe "C:\Data\nana\studY\CS\2CS\S2\arduino\mini projet\CleanDzApp\firebase_test.py"
Traceback (most recent call last):
  File "C:\Data\nana\studY\CS\2CS\S2\arduino\mini projet\CleanDzApp\firebase_test.py", line 1, in <module>
    import firebase
  File "C:\Users\Marc\PycharmProjects\pythonProject\venv\lib\site-packages\firebase\__init__.py", line 19, in <module>
    from sseclient import SSEClient
ModuleNotFoundError: No module named 'sseclient'

Process finished with exit code 1

C:\Users\Marc\PycharmProjects\pythonProject\venv\Scripts\python.exe“C:\Data\nana\studY\CS\2CS\S2\arduino\mini projet\CleanDzApp\firebase\u test.py”
回溯(最近一次呼叫最后一次):
文件“C:\Data\nana\studY\CS\2CS\S2\arduino\mini projet\CleanDzApp\firebase\u test.py”,第1行,在
进口火基
文件“C:\Users\Marc\PycharmProjects\pythonProject\venv\lib\site packages\firebase\ \uuuu init\uuuu.py”,第19行,在
从sseclient导入sseclient
ModuleNotFoundError:没有名为“sseclient”的模块
进程已完成,退出代码为1

最初的问题是解决方案,异步成为最新版本pip中的一个关键词,因此您应该将路径C:\Users\username\AppData\Local\Programs\Python\Python38-32\Lib\site packages\firebase中的文件async更改为其他类似nasync的内容,还将init.py和firebase.py(在同一路径中)中的----从同步导入进程池----更改为----从nsync导入进程池-----,这应该可以解决问题

最初的问题就是这个解决方案

异步在最新版本的pip中成为一个关键词,因此您应该将路径C:\Users\username\AppData\Local\Programs\Python\Python38-32\Lib\site packages\firebase中的文件async更改为其他类似于nasync的文件,同时将init.py和firebase.py中的----from sync import process pool---(在同一路径中)更改为----from nsync import process pool---,这将解决问题

您是如何安装它的?在您的虚拟环境中,
pip list
的输出是什么(关于这些详细信息,请在pycharm终端中运行这两个cmds pip install requests=2.24.0和pip install python firebase实际上我已修复了该错误,现在我有了另一个错误(AttributeError:module'firebase.firebase'没有属性'post')将firebase import firebase-->
行从firebase import firebase
更改为import firebase。此外,如果您提供有关如何解决初始问题的信息(可能会将其作为答案发布),这将有助于将来遇到类似问题的访问者您是如何安装的?在您的虚拟环境中,
pip list
的输出是什么(关于这些详细信息,请参阅pycharm终端,我运行了这两个cmds pip install requests=2.24.0和pip install python firebase。事实上,我已修复了该错误,现在我有了另一个错误(AttributeError:module'firebase.firebase'没有属性'post')从firebase import firebase更改行
import firebase
-->
。此外,如果您提供有关如何解决初始问题的信息(可能会将其作为答案发布),这将有助于将来遇到类似问题的访问者