繁体   English   中英

运行 python 时出现 ModuleNotFoundError

[英]ModuleNotFoundError appears when running python

尝试导入库时出现 ModuleNotFoundError。 我在 Mac Big Sur 11.6.1 在此处输入图像描述 在此处输入图像描述

切换到Python的3.9.6版本后,可以找到numpy package。

所以需要安装包的rest: matplotlib等。

Ctrl+Shif+P -> Python: Select Interpreter -> Ctrl+Shift+` -> in the terminal execute pip install matplotlib

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM