+ 1
Module name
I used the correct line for importing a module which is Discord, but the results said that it cannot be found. Does anyone understand this and know how to solve it?
11 ответов
0
I used Python 3, and it’s like..
https://code.sololearn.com/cj6ltZBuso70/?ref=app
and I tried that code in the playground.
+ 7
You have to run that in the command line, not in the Python Shell.
+ 5
If you had added the Python directory to path while installing Python, ignore the second step.
• Open command line. (Type cmd in the start menu and you'll get command prompt.)
• Go to the directory where you've installed Python.
• Now execute the commands given in that tutorial there.
+ 4
Which language? Can you show us the code? Also, did you try that in the code playground?
+ 4
Assuming that you have Python installed, do this:
https://github.com/Rapptz/discord.py/blob/async/README.md
+ 2
You cannot use that in the code playground since that module is not present here. Although you can run it on your machine after getting the discord.py API wrapper. An exhaustive list of all modules present on Sololearn:
https://code.sololearn.com/c071JeXy6LcW/?ref=app
+ 1
Did you run that in Python Shell? 🤔
0
Wait a minute, how do I get the discord.py API wrapper?
0
Err.. it always says that ‘pip’ is an invalid syntax.
0
Yes I did.
0
Oh. But how do we do that?