Installing disnake
To use disnake, you'll first need to install Python. Like most other
discord.py
forks, disnake supports Python 3.8 or higher. For a full
walkthrough on installing Python, we suggest following
this Real Python article, or
The Hitchhiker's Guide to Python.
To use disnake, you'll need to install it via pip
, which is Python's standard package manager. Since pip comes
standard with Python 3.4 and above, there is no need to separately install it.
To install the library without full voice support, you can just run the following command:
- Windows
- macOS
- Linux
py -3 -m pip install -U disnake
python3 -m pip install -U disnake
python3 -m pip install -U disnake
Otherwise to get voice support you should run the following command:
- Windows
- macOS
- Linux
py -3 -m pip install -U "disnake[voice]"
python3 -m pip install -U "disnake[voice]"
python3 -m pip install -U "disnake[voice]"
To install the development version, do the following:
$ pip install -U git+https://github.com/DisnakeDev/disnake#egg=disnake[speed,voice]
While installing voice on Linux, you must install the following packages via your favourite package manager (e.g. apt
,
dnf
, etc.) before running the above commands:
- libffi-dev (or
libffi-devel
on some systems) - python-dev (e.g.
python3.6-dev
for Python 3.6)
And that's it! With all the necessities installed, you're almost ready to start coding your bot.