Installation
This guide covers installing Pycord on all major platforms. Choose the installation method that best fits your needs.Prerequisites
Verify your Python version:Basic Installation
The basic installation includes all core features except voice support.Installation with Voice Support
To enable voice features like audio playback and recording, install Pycord with voice support:Linux Voice Support Prerequisites
On Linux, you must install system dependencies before installing voice support:
python3.10-dev with your Python version (e.g., python3.11-dev, python3.12-dev).
Installation with Speed Optimizations
For improved performance with JSON parsing and HTTP operations:- msgspec - Faster JSON serialization/deserialization
- aiohttp[speedups] - Enhanced HTTP performance with aiodns, brotli, and cchardet
Complete Installation (All Features)
To install Pycord with all optional dependencies:Development Version
To install the latest development version from GitHub:Direct Installation from GitHub
Clone and Install
Virtual Environments (Recommended)
Using a virtual environment is recommended to avoid dependency conflicts with other Python projects.
Verify Installation
Confirm Pycord is installed correctly:Optional Dependencies
Here’s a complete list of optional packages:| Package | Purpose | Install Extra |
|---|---|---|
| PyNaCl | Voice support | [voice] |
| msgspec | Faster JSON operations | [speed] |
| aiodns | Faster DNS resolution | [speed] |
| brotli | Brotli compression support | [speed] |
| cchardet | Faster character encoding detection | [speed] |
Troubleshooting
Permission Errors
If you encounter permission errors, try using--user flag:
