问题标签 [rich]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
21 浏览

python - 无法导入丰富的 Python 库

解决了

我正在尝试将丰富的 python 库导入到我的脚本中,但它不起作用。

我能够安装它, pip install rich但我的脚本似乎没有将它识别为已安装。

为了确保它已安装,我运行了python -m rich它显示所有丰富添加的功能,并且运行正确。

但是,如果我们在我的脚本中查看它被导入的位置,就会在 Rich 下方出现一条错误行,表示它无法识别。具体来说,它说“无法解决导入'丰富'” 导入行的屏幕截图

有没有人遇到过这个?

解决方案 必须重新启动 Visual Studio 代码并修复它