Ask coding questions

← Back to all posts
No 'replit' module
Lumpy_Wiggles (66)

I imported the module for, and got this:

Traceback (most recent call last):
  File "", line 2, in <module>
    import replit
ModuleNotFoundError: No module named 'replit'

Did you remove it or something? If so what should we use to clear screen? os.system('clear')

Answered by ThomasS1 (56) [earned 5 cycles]
View Answer
ThomasS1 (56)

Here's a fix: replit module fix

Please select this as the answer if it works for you! Thanks.

OwenBradstreet (85)

If you have multiple files (project mode), replit won't import. I also don't think os.system("clear") work either, it just prints "TERM environment not set."

ash15khng (507)

I also have this same problem....