+ 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?

11th Nov 2018, 6:46 AM
Dimensional Warper
Dimensional Warper - avatar
11 Answers
0
I used Python 3, and it’s like.. https://code.sololearn.com/cj6ltZBuso70/?ref=app and I tried that code in the playground.
11th Nov 2018, 8:35 AM
Dimensional Warper
Dimensional Warper - avatar
+ 7
You have to run that in the command line, not in the Python Shell.
21st Nov 2018, 8:20 AM
Harsh
Harsh - avatar
+ 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.
22nd Nov 2018, 10:29 AM
Harsh
Harsh - avatar
+ 4
Which language? Can you show us the code? Also, did you try that in the code playground?
11th Nov 2018, 8:29 AM
Harsh
Harsh - avatar
+ 4
Assuming that you have Python installed, do this: https://github.com/Rapptz/discord.py/blob/async/README.md
11th Nov 2018, 9:02 AM
Harsh
Harsh - avatar
+ 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
11th Nov 2018, 8:46 AM
Harsh
Harsh - avatar
+ 1
Did you run that in Python Shell? 🤔
21st Nov 2018, 5:46 AM
Harsh
Harsh - avatar
0
Wait a minute, how do I get the discord.py API wrapper?
11th Nov 2018, 8:59 AM
Dimensional Warper
Dimensional Warper - avatar
0
Err.. it always says that ‘pip’ is an invalid syntax.
21st Nov 2018, 4:55 AM
Dimensional Warper
Dimensional Warper - avatar
0
Yes I did.
21st Nov 2018, 8:04 AM
Dimensional Warper
Dimensional Warper - avatar
0
Oh. But how do we do that?
22nd Nov 2018, 6:55 AM
Dimensional Warper
Dimensional Warper - avatar