Getting an error for a module that I definitely imported

import pyinputplus as pyip

while True:
    prompt='Want to know how to keep an idiot busy for hours?n'
    if response=='no':
    print('Thank you. Have a nice day.')

When I run my above code , I get this error:

Traceback (most recent call last):
  File "", line 1, in <module>
    import pyinputplus as pyip
  File "", line 15, in <module>
    import pysimplevalidate as pysv # type: ignore
ModuleNotFoundError: No module named 'pysimplevalidate'

I cannot figure it out. The module is definitely installed. I’ve even moved it from the folder it was originally installed in to the mu folder where the py file is saved. Any help would be appreciated.

Stack Overflow Asked by MdCAL12 on December 31, 2020

1 Answers

One Answer

The ModuleError says that you do not have pysimplevalidate installed.

Using the same python executable as you are using to run your script (, run

python -m pip install pysimplevalidate

or, even more bullet-proof:

<path_to_python.exe> -m pip install pysimplevalidate

If you are not sure what python executable the script is using, you can check it with
# put this on top of your script
import sys
print(sys.executable) # will print C:pathtopython.exe

Correct answer by np8 on December 31, 2020

Add your own answers!

Related Questions

Find a cell containing a specific date

1  Asked on December 22, 2021


Jeykll file to import not found or unreadable: base

1  Asked on December 22, 2021 by kyu96


Unable to remove event listener from document

1  Asked on December 22, 2021 by prawn


Invalid result adding the number of 1s in a binary number

2  Asked on December 20, 2021 by aworeham


How to print the elements of 3 different arrays by the order?

2  Asked on December 20, 2021 by fuzzyfiso


Finding string elements of an array in another array

5  Asked on December 20, 2021 by p-emt


How to plot several columns on the same line chart in R?

2  Asked on December 20, 2021 by user13953317


Is there a way to craft URLs to fill forms faster?

1  Asked on December 20, 2021 by rosalind-goh


infinite loop while using useEffect and redux store

0  Asked on December 20, 2021 by susanta


Cannot convert textfield into string

1  Asked on December 20, 2021 by anuj-amin


Is there multiple ways to cin vector elements?

1  Asked on December 20, 2021 by 2kbummer


Ask a Question

Get help from others!

© 2022 All rights reserved.