本文主要是介绍crypt.h:No such file or directory 亲测,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
把几种大家提到的方法都列一下,自取
如果是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 libxcryptexport CPATH=/opt/conda/include/
参考:
crypt.h: No such file or directory · Issue #309 · stanford-futuredata/ColBERT · GitHub
这篇关于crypt.h:No such file or directory 亲测的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!