Replies: 1 comment 1 reply
-
Are you running the code directly from the VS Code terminal? If so, make sure you have selected the right interpreter, more info here. However consider using a virtual environment. You can find more information on how to create one here but let me explain briefly how to do it. Make sure you are on the root of your bot directory (I guess CM-Public) and run |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I just switched from a web-based IDE(repl.it) to VS Code on my Mac running Catalina. I have installed 3.7.9 and set it as global, and of course installed discord.py with pip. However, running
import discord
still causes the following error to appear:ModuleNotFoundError: No module named 'discord'
.I also have the following packages: https://i.stack.imgur.com/dlnTq.png
Reproduction Steps
import discord
in VS Code running Python 3.7.9Expected Results
I expected discord to reflect its status as being installed.
Actual Results
ModuleNotFoundError: No module named 'discord'
Traceback (most recent call last): File "/Users/myname/Desktop/CM-Public/main.py", line 6, in <module> import discord ModuleNotFoundError: No module named 'discord'
System Information
Beta Was this translation helpful? Give feedback.
All reactions