我正在尝试在 MacOS Big Sur Python 3.8.2 上运行使用 firebase 模块的 Jupyter 笔记本单元,但它一直返回此错误:
ModuleNotFoundError: No module named 'Crypto'
我运行了 pip install Crypto 但它说要求已经满足
Requirement already satisfied: Crypto in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (1.4.1)
Requirement already satisfied: Naked in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from Crypto) (0.1.31)
Requirement already satisfied: shellescape in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from Crypto) (3.8.1)
Requirement already satisfied: pyyaml in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from Naked->Crypto) (5.4.1)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from Naked->Crypto) (2.25.1)
Requirement already satisfied: idna<3,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests->Naked->Crypto) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests->Naked->Crypto) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests->Naked->Crypto) (1.26.3)
Requirement already satisfied: chardet<5,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests->Naked->Crypto) (4.0.0)
Note: you may need to restart the kernel to use updated packages.
在我重新启动内核甚至重新安装 firebase 模块后,它仍然显示相同的内容。