简体   繁体   English

无法导入 pyinputplus 模块

[英]Can't import pyinputplus module

When I try to import the module on Mu, I get the error: ModuleNotFoundError: No module named 'pyinputplus'当我尝试在 Mu 上导入模块时,出现错误: ModuleNotFoundError: No module named 'pyinputplus'

However, on command prompt it says its successfully installed.但是,在命令提示符下它说它已成功安装。 Im on windows 10 and using python 3.9.我在 windows 10 上并使用 python 3.9。 any help appreciated任何帮助表示赞赏

First, you have to install that module in your computer.首先,您必须在您的计算机中安装该模块。 By using:通过使用:

pip install pyinputplus

Then, you can import it by:然后,您可以通过以下方式导入它:

import pyinputplus as pyip

and then, you will get results like this .然后,你会得到这样的结果。

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

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