<linkrel="alternate"hreflang="zh-cn"href="https://vuepress-theme-hope-docs-demo.netlify.app/deploy/install.html"><metaproperty="og:url"content="https://vuepress-theme-hope-docs-demo.netlify.app/en/deploy/install.html"><metaproperty="og:site_name"content="LiteyukiBot"><metaproperty="og:title"content="Installation"><metaproperty="og:description"content="Installation Conventional deployment Install Git and Python3.10+ environment Tips Recommended to use venv to run Liteyuki to avoid dependency conflicts, you can use python -m ve..."><metaproperty="og:type"content="article"><metaproperty="og:locale"content="en-US"><metaproperty="og:locale:alternate"content="zh-CN"><metaproperty="og:updated_time"content="2024-08-16T18:24:25.000Z"><metaproperty="article:tag"content="安装"><metaproperty="article:modified_time"content="2024-08-16T18:24:25.000Z"><scripttype="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Installation","image":[""],"dateModified":"2024-08-16T18:24:25.000Z","author":[]}</script><scriptsrc="/js/en/get_data.js"type="module"></script><scriptsrc="/js/style.js"type="module"></script><linkrel="icon"href="https://cdn.liteyuki.icu/favicon.ico"><linkrel="stylesheet"href="https://cdn.bootcdn.net/ajax/libs/firacode/6.2.0/fira_code.min.css"><metaname="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Installation | LiteyukiBot</title><metaname="description"content="Installation Conventional deployment Install Git and Python3.10+ environment Tips Recommended to use venv to run Liteyuki to avoid dependency conflicts, you can use python -m ve...">
</code></pre><divclass="line-numbers"aria-hidden="true"><divclass="line-number"></div><divclass="line-number"></div><divclass="line-number"></div><divclass="line-number"></div><divclass="line-number"></div><divclass="line-number"></div><divclass="line-number"></div><divclass="line-number"></div></div></div><divclass="hint-container tip"><pclass="hint-container-title">Tips</p><p>Recommended to use <code>venv</code> to run Liteyuki to avoid dependency conflicts, you can use <code>python -m venv .venv</code> to create a virtual environment, and then use <code>.venv\Scripts\activate</code> to activate the virtual environment (use <code>source .venv/bin/activate</code> to activate on Linux)</p></div><h3id="use-docker"tabindex="-1"><aclass="header-anchor"href="#use-docker"><span><strong>Use docker</strong></span></a></h3><ol><li>Install <ahref="https://docs.docker.com/get-docker/"target="_blank"rel="noopener noreferrer"><code>Docker</code><span><svgclass="external-link-icon"xmlns="http://www.w3.org/2000/svg"aria-hidden="true"focusable="false"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><spanclass="external-link-icon-sr-only">open in new window</span></span></a></li><li>Clone project repo <code>git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1</code></li><li>change directory <code>cd LiteyukiBot</code></li><li>build image with <code>docker build -t liteyukibot .</code></li><li>start container <code>docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot</code></li></ol><divclass="hint-container tip"><pclass="hint-container-title">Tips</p><p>For Windows, please use the absolute project directory <code>/path/to/LiteyukiBot</code> instead of $(pwd)</p><p>If you have changed the port number, replace <code>20216</code> in <code>20216:20216</code> with your port number</p></div><h3id="use-trss-scripts"tabindex="-1"><aclass="header-anchor"href="#use-trss-scripts"><span><strong>Use TRSS Scripts</strong></span></a></h3><p><ahref="https://timerainstarsky.github.io/TRSS_Liteyuki/"target="_blank"rel="noopener noreferrer">TRSS_Liteyuki LiteyukiBot manage script<span><svgclass="external-link-icon"xmlns="http://www.w3.org/2000/svg"aria-hidden="true"focusable="false"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><spanclass="external-link-icon-sr-only">open in new window</span></span></a>, This feature is supported by TRSS and is not an official feature of LiteyukiBot. It is recommended to use Arch Linux.</p><h2id="device-requirements"tabindex="-1"><aclass="header-anchor"href="#device-requirements"><span><strong>Device requirements</strong></span></a></h2><ul><li>Minimum Windows system version: <code>Windows 10+</code> / <code>Windows Server 2019+</code></li><li>Linux systems need to support Python 3.10+, with <code>Ubuntu 20.04+</code> recommended</li><li>CPU: <code>1 vCPU</code> and more(Bot is multi processes, the more cores, the better the performance)</li><li>Memory: Without other plugins, the Bot will occupy <code>300~500MB</code>, including processes like <code>chromium</code> and <code>node</code>. The memory occupied by other plugins depends on the specific plugins, and it is recommended to have more than <code>1GB</code>.</li><li>Storage: At least <code>1GB</code> of space is required.</li></ul><divclass="hint-container warning"><pclass="hint-container-title">Warning</p><p>If there are multiple environments on the device, pl