python - ModuleNotFoundError:即使安装后也没有名为“加密”的模块
问题描述
我正在尝试在 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 模块后,它仍然显示相同。
解决方案
推荐阅读
- ios - 为什么 Data.append(_:) 不会在 Swift for iOS 中采用 Int 类型枚举的 rawValue?
- server - 计算引擎实例移动
- javascript - 基于路线的显示元素 - Angular
- android - 获取 div 类 JSOUP 下的链接
- sql - 从多个 .bak 文件还原数据库 SQL Server 2012
- ios - UIKit何时调用“draw”?
- javascript - Vue.js:在方法中的循环内更新 Bottstrap 进度条
- javascript - 删除具有重叠 png 按钮图像的按钮残留物
- python - 当我将代码粘贴到 python 终端中时如何取消激活双缩进
- swift - Swift 图表不显示值标签