Skip to content
"Repl.it: Package operation failed" on installing discord.py
Profile icon
danaragnarok

I am trying to create a simple discord bot. I have tried importing it via the packages window, which gives the error "Repl.it: Package operation failed" and no other message. Adding it through requirements.txt does nothing. What else can I do?

You are viewing a single comment. View All
Profile icon
danaragnarok

@Zexogon
nope, same error message:
Traceback (most recent call last):
File "main.py", line 3, in
import discord
ModuleNotFoundError: No module named 'discord

It's a problem with installing the package, I think, not the imports I'm using, so I don't understand why adding an import would help.