在 VSCode Jupyter 中导入 tqdm 时出现 ModuleNotFoundError

问题描述 投票:0回答:1

我在尝试在 Visual Studio Code (VSCode) 中的 Jupyter 笔记本中导入 tqdm 库时遇到问题。我已经使用命令 pip install tqdm 成功安装了 tqdm 库,并且工作正常。但是,当我尝试使用 from tqdm.notebook import tqdm 的代码行导入它时,我收到 ModuleNotFoundError。

成功导入 tqdm,没有问题

python jupyter-notebook artificial-intelligence ocr tqdm
1个回答
0
投票

检查以下条件一次

• 检查tqdm是否安装在正确的Python环境中

• 验证 tqdm 库是否与 Jupyter 笔记本版本兼容

• 确保 tqdm 库可在 Python 路径中访问

© www.soinside.com 2019 - 2024. All rights reserved.