command to install discord.py code example
Example 1: install discord module py
# Linux/macOS
python3 -m pip install -U discord.py
# Windows
py -3 -m pip install -U discord.py
Example 2: install discord python
pip install discord.py
Example 3: how to import discord in python
py -3 -m pip install -U discord.py