Go to your project’s working directory: $ cd your-bot-source $ python3 -m venv bot-env Activate the virtual environment: $ source bot-env/bin/activate On Windows you activate it with: $ bot-env\Scripts\activate.bat Use pip like usual: $ pip install -U discord.py
To start the bot: py -3 bot.py