ModuleNotFoundError:没有名为“pyinputplus”的模块

Mub*_*rdy 4 python google-colaboratory

当我尝试在 google colab 中运行此代码时,它显示模块未找到错误。这是我的代码

   import pyinputplus as pyip

   response = pyip.inputNum('Enter num: ')
Run Code Online (Sandbox Code Playgroud)

小智 7

我想你可能需要在你的谷歌colab中安装PyInputPlus。您可以使用此在 google colab 中安装!pip install PyInputPlus。需要加上“!” 在 pip 语句之前。这将帮助您从笔记本运行终端命令