aNdy
aNdy

Reputation: 19

import discord is not recognized in Python,

I have already installed the discord package with the command: py -3 -m pip install -U discord.py , but it doesn't seem to recognize it.

I have manually checked in the install folder for the files and already tried reinstalling the package. I also modified the Path in the this PC -> Properties.

Upvotes: 0

Views: 190

Answers (1)

PhilPAlEskQ
PhilPAlEskQ

Reputation: 107

Try changing your interpreter in your IDE. If you have multiple versions of python installed you might have installed discord on a version of python which your IDE is not using right now. To change this on VS Code, do ctrl + shift + p, and then type in Select Interpreter. Change it to the version you downloaded it on (ideally the latest)

If you have PyCharm, refer here

If you have any other IDE, consider searching on Google.

Upvotes: 1

Related Questions