环境
- 使用
uv
- Python: CPython 3.12.13
- 安装方式:IBus 纯语音版,不启用 SLM,使用项目虚拟环境
- 系统一开始没有安装
libgirepository-2.0-dev
复现步骤
git clone https://github.com/LeonardNJU/VocoType-linux.git ~/.local/opt/vocotype-linux
cd ~/.local/opt/vocotype-linux
./scripts/install-ibus.sh
交互选择:
[1] 纯语音版
[1] 不启用 SLM
[1] 项目虚拟环境
现象
安装依赖到虚拟环境时,pygobject==3.56.3 编译失败。
原始输出节选:
[1/6] 创建安装目录与 Python 环境...
创建虚拟环境: /home/flamingo/.local/opt/vocotype-linux/.venv/bin/.. (使用 3.12)
Using CPython 3.12.13
Creating virtual environment at: .venv/bin/..
Activate with: source .venv/bin/../bin/activate
安装依赖到虚拟环境...
Resolved 43 packages in 7.14s
Built jieba==0.42.1
Built pycairo==1.29.0
× Failed to build `pygobject==3.56.3`
├─▶ The build backend returned an error
╰─▶ Call to `mesonpy.build_wheel` failed (exit status: 1)
Run-time dependency girepository-2.0 found: NO
(tried pkg-config and cmake)
Not looking for a fallback subproject for the dependency girepository-2.0 because:
Use of fallback dependencies is disabled.
../meson.build:35:9: ERROR: Dependency 'girepository-2.0' is required but not found.
结果
手动安装下面这个包后,再重新运行 ./scripts/install-ibus.sh,安装可以继续通过:
sudo apt install libgirepository-2.0-dev
环境
uvlibgirepository-2.0-dev复现步骤
交互选择:
现象
安装依赖到虚拟环境时,
pygobject==3.56.3编译失败。原始输出节选:
结果
手动安装下面这个包后,再重新运行
./scripts/install-ibus.sh,安装可以继续通过: