ModuleNotFoundError:没有名为"pyasn1"的模块


File "D:Documentsmy_projectfirebase_login.py", line 1, in <module>
from pyrebase import pyrebase
File "D:DocumentsPython_projectsTest_kivyvenvlibsite-packagespyrebase__init__.py", line 1, in <module>
from .pyrebase import initialize_app
File "D:DocumentsPython_projectsTest_kivyvenvlibsite-packagespyrebasepyrebase.py", line 17, in <module>
from oauth2client.service_account import ServiceAccountCredentials
File "D:DocumentsPython_projectsTest_kivyvenvlibsite-packagesoauth2clientservice_account.py", line 26, in <module>
from oauth2client import crypt
File "D:DocumentsPython_projectsTest_kivyvenvlibsite-packagesoauth2clientcrypt.py", line 23, in <module>
from oauth2client import _pure_python_crypt
File "D:DocumentsPython_projectsTest_kivyvenvlibsite-packagesoauth2client_pure_python_crypt.py", line 22, in <module>
from pyasn1.codec.der import decoder
ModuleNotFoundError: No module named 'pyasn1'
Process finished with exit code 1

我的代码昨天工作得很好,今天由于pyrebase崩溃,我无法启动它。我有这个错误来自PyCharm项目。

pyrebase: v4.5.0 https://github.com/nhorvath/Pyrebase4

我有同样的问题,我解决了更新pip。我还在github上发现了一个类似的导入问题。

python -m ensurepip

python get-pip.py

pip install awscli --ignore-installed six

ModuleNotFoundError: No module named 'pyasn1_modules'

pip install pyasn1_modules

ModuleNotFoundError: No module named 'google.protobuf'

pip install protobuf

相关内容

  • 没有找到相关文章

最新更新