import{_ as i,c as s,a7 as a,o as t}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1728910297000}'),n={name:"en/deploy/install.md"};function l(o,e,r,p,d,h){return t(),s("div",null,e[0]||(e[0]=[a(`

Install

Normal Installation

  1. Install Git and Python3.10+ Environment.
bash
# Clone Repo
git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1

# Change directory
cd LiteyukiBot

# Create virtual environment
python -m venv venv

# Activate virtual environment
.\\venv\\Scripts\\activate # Windows
source venv/bin/activate # Linux

# Install dependencies
pip install -r requirements.txt

# Run Liteyuki
python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\\Scripts\\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $(pwd)
If you have modified the port number, please replace 20216:20216 with your port number

Device Requirements

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

`,13)]))}const u=i(n,[["render",l]]);export{k as __pageData,u as default};