#๐Ÿ”’ Discord Library

20 messages ยท Page 1 of 1 (latest)

oak eagle
#

I wanted to create a discord bot but when I try to launche it it was write " ModuleNotFoundError: No module named discord " even if I download it right before.
Does somoen know what is the problem?

bright driftBOT
#

@oak eagle

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

nova knot
#

Idk im not an expert but this happened to me i just created an environment and then created a requirements.txt file and downloaded it straight like that

nova knot
#

it was resolved for me

#

but if u dont want to create an environment then just wait for someone else who can help you in this

#

they might know more

oak eagle
#

okay

#

but what is an environement?

tranquil wren
#

Hey I think he is talking about a virtual environment

#

Sometimes this problem occurs with discord.py. what you can do is try installing the discord module by using the version of the module. or you can install the module inside a virtual environment and use the environment to run your commands

#

I hope that solves your problem

oak eagle
#

euh I dont really understand can you tell me exactly what to do pls?

#

like which command or somthing

#

thank you

tranquil wren
#

Simply try install discord like this:
pip install discord

bright driftBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.