在 linux 上安装¶
本指南包含以下主题:
安装依赖关系¶
下面列出了几种流行 Linux 发行版的安装命令。
对应的系统,使用对应的命令:
Debian/Ubuntu:
sudo apt-get install python3 python3-pip git git-lfs
git lfs install --skip-repo
Redhat/Fedora:
sudo dnf install python python-pip git git-lfs
git lfs install --skip-repo
Arch Linux:
sudo pacman -S python python-pip git git-lfs
git lfs install --skip-repo
下载代码库¶
使用下面的命令检出 Blender 手册代码库:
cd ~
git clone https://projects.blender.org/blender/blender-manual.git
代码库下载需要几分钟时间,这取决于你的网络连接。
设置编译环境¶
打开终端窗口。
进入刚刚由
git clone
添加的blender-manual
文件夹:cd ~/blender-manual
安装依赖项:
make setup
Note
您需要不时地重新运行此命令,以确保依赖关系是最新的。
Tip
make setup
使用以下命令自动创建虚拟环境:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
这避免了干扰系统 Python 安装,遵循 PEP 668
The Sphinx command is available at:
.venv/bin/sphinx-build