参考 - Ueberzug
参考 - What is the meaning of “Failed building wheel for X” in pip install?
WSL下装rnvimr相关依赖时,执行sudo pip3 install ueberzug
报错
- 确保有对应python版本
python-dev
依赖- 如python3.8,
sudo apt install python3-dev
或sudo apt install python3.8-dev
- 如python3.8,
- 确保安装
X11
依赖sudo apt install libx11-dev
- 确保安装
Xext
依赖sudo apt install libxext-dev
异常信息
Building wheels for collected packages: ueberzug
Building wheel for ueberzug (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m9w19f30/ueberzug/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m9w19f30/ueberzug/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7cb8kkqs
cwd: /tmp/pip-install-m9w19f30/ueberzug/
Complete output (50 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/action.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/batch.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/conversion.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/files.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/geometry.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/layer.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/library.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/loading.py -> build/lib.linux-x86_64-3.8/ueberzug
copying ueberzug/