把几种大家提到的方法都列一下,自取
如果是Conda环境下报错,建议先做1和2,然后再做3
1. ubuntu安装这个系统文件
apt install libcrypt
2. ubuntu安装这个系统文件
sudo apt-get update
sudo apt-get install libc6-dev
3.Conda环境下
cp /usr/include/crypt.h /opt/conda/include/python3.8/
注意,如果是虚拟环境,需要copy到虚拟环境下面,其中,mip-splatting为我的虚拟环境名称
cp /usr/include/crypt.h /opt/conda/envs/mip-splatting/include/python3.8/crypt.h
4. 其他方法
conda install --channel=conda-forge libxcrypt
export CPATH=/opt/conda/include/
参考:
crypt.h: No such file or directory · Issue #309 · stanford-futuredata/ColBERT · GitHub