3
Importing "this" in Python 🐍
JeetZawab_Ul (2)

When I try to run the "import this" command in Repl.it, it gives me the following error:
Repl.it: Installing fresh packages

Collecting this
ERROR: Could not find a version that satisfies the requirement this (from versions: none)
ERROR: No matching distribution found for this

Repl.it: package installation failed!

Can you please explain me why this issue is occurring?
Looking forward to hear from you.

You are viewing a single comment. View All
2
mat1 (2257)

This is a Repl.it bug. Please report it in the bugs board.
The reason you're getting this is because Repl.it is attempting to install the nonexistent "this" library from PyPI. You can still import this if you do __import__('this')
Please mark my comment as the answer if it helped. Thanks!

1
JeetZawab_Ul (2)

@mat1 Thank you very much. It worked. And I reported the bug as well.