Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'pyinputplus'

When i try to run this code in google colab it show module not found error. This was my code

   import pyinputplus as pyip

   response = pyip.inputNum('Enter num: ')
like image 496
Mubin_Hardy Avatar asked Sep 14 '25 21:09

Mubin_Hardy


2 Answers

I think you may need to install PyInputPlus in your google colab. You can install in google colab using this !pip install PyInputPlus. You need to add "!" before pip statment. That will help you to run terminal commands from your notebook

like image 53
Chuu Avatar answered Sep 17 '25 12:09

Chuu


First, you have to install that module in google colab. By using:

pip install pyinputplus

Then, you can import it by:

import pyinputplus as pyip

And then, you will get result like this

img

like image 44
Akash Kumar Avatar answered Sep 17 '25 12:09

Akash Kumar