1.7 nvdiffrast
约 115 字小于 1 分钟
2025-04-20
1.7.1 error: EGL/egl.h: No such file or directory
系统缺少 EGL 库:
apt-get install libegl1
但是我们没有 root 权限安装不了,可以尝试 Conda 安装
最简单的方法为:替换 RasterizeGLContext
为 RasterizeCudaContext
1.7.2 crypt.h: No such file or directory
在 building extension 'nvdiffrast_plugin'
时出现以下报错:
/mnt/data/home/xxxx/miniforge3/envs/deep3d_pytorch/include/python3.8/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
解决:
mamba install libxcrypt
export CPATH=$CONDA_PREFIX/include
https://github.com/stanford-futuredata/ColBERT/issues/309#issuecomment-1958177044