Table of contents
This page is generated from
docs/about_venv.rst- please edit the source file instead of this page.
About Virtual Environments
Creating a virtual environment is simple and helps prevent installation problems.
What Are Virtual Environments For?
Virtual environments allow you to isolate Red's library dependencies, cog dependencies, and Python binaries from the rest of your system with no performance overhead, ensuring those dependencies and Red are installed to a predictable location. This makes uninstalling Red as simple as removing a single folder, preventing any data loss or breaking other things on your system.
Virtual Environments with Multiple Instances
If you are running multiple instances of Red on the same machine, you have the option of either using the same virtual environment for all of them, or creating separate ones.
Using a single virtual environment for all of your instances means you:
- Only need to update Red once for all instances.
- Must shut down all instances prior to updating.
- Will save space on your hard drive.
- Want all instances to share the same version/dependencies.
Using multiple virtual environments for each individual or select groups of instances means you:
- Need to update Red within each virtual environment separately.
- Can update Red without needing to update all instances.
- Only need to shut down the instance(s) being updated.
- Want different Red/dependency versions on different instances.
IMPORTANT
Regardless of which option you choose, do not update while any instances within that virtual environment are running. This is especially true for Windows, as files are locked by the system while in use.
Installation Guides
- Installing Red
- Creating a bot account
- Updating Red
- Backing Up and Restoring Red
- About Virtual Environments
- Setting up auto-restart using batch on Windows
- Setting up auto-restart on Mac
- Setting up auto-restart using systemd on Linux
Cog Reference
User guides
- Getting started
- Running Red on Fluxer
- About Privileged Intents
- About public (big) bots
- Admin
- Alias
- Audio
- Cleanup
- Cog Manager UI
- Core
- CustomCommands
- Dev
- Downloader
- Economy
- Filter
- General
- Image
- Permissions
- Mod
- ModLog
- Mutes
- Reports
- Streams
- Trivia
- Warnings
- Red and End User Data
Cog Creation Guides
- Creating cogs for Red
- Slash Commands and Interactions
- Publishing cogs for Red
- Becoming an Approved Cog Creator
- Versioning
- End-user Guarantees
- Developer Guarantees
- Breaking Change Notices
Cog Development Framework Reference
- Shared API Keys
- Bank
- Bot
- Command Check Decorators
- App Command Check Decorators
- Commands Package
- App Commands Package
- Config
- Data Manager
- Custom Events
- Internationalization Framework
- Mod log
- RPC
- Tree
- Utility Functions
Others
Legacy (Red V2)