Ask coding questions

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

I imported the module for repl.it, and got this:

Traceback (most recent call last):
  File "main.py", 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 (48) [earned 5 cycles]
View Answer
Commentshotnewtop
ThomasS1 (48)

Here's a fix: replit module fix

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

OwenBradstreet (81)

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 (306)

I also have this same problem....