0

当我尝试在 Thonny 中导入 firebase 时,我不断收到错误消息

Traceback (most recent call last):
  File "C:\Users\jackl\brhyu.py", line 1, in <module>
    import firebase
  File "C:\Users\jackl\AppData\Roaming\Python\Python37\site-packages\firebase\__init__.py", line 3
    from .async import process_pool
              ^
SyntaxError: invalid syntax

有什么想法有什么问题吗?我的代码实际上只是:

import firebase

我试过评论“.async”部分不起作用。

我也尝试过替换后端的代码,例如替换

import atexit

from .async import process_pool
from firebase import *

import atexit
from .async import process_pool
from .multiprocess_pool import process_pool
from firebase import *

然后替换

from .firebase_token_generator import FirebaseTokenGenerator
from .decorators import http_connection

from .async import process_pool
from .jsonutil import JSONEncoder

__all__ = ['FirebaseAuthentication', 'FirebaseApplication']

import json

from .firebase_token_generator import FirebaseTokenGenerator
from .decorators import http_connection

from .async import process_pool
from .multiprocess_pool import process_pool
from .jsonutil import JSONEncoder

我完全被难住了...

非常感谢任何帮助,我需要这个进行大型考试

4

0 回答 0