背景
一些开源工程的本地环境部署虽然不麻烦,但是总会遇到一些问题,本文旨在记录一些博主遇到的问题,二次遇到不用再重新Google和翻issue~
- fatal error: crypt.h: No such file or directory
ref && solution:
conda install --channel=conda-forge libxcrypt
export CPATH=/conda/envs/$YOUER_ENV_NAME/include/
- gcc versions later than 10 are not supported!
ref&&solution:
如果不想直接更换本机环境中的gcc版本,conda的虚拟环境也已经支持不同版本的gxx
conda install gxx_linux-64=10.3.0 -c conda-forge
export PATH=$CONDA_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
- …C++17 or later compatible compiler is required to use ATen…
主要原因是:
编译低版本的MMCV;
使用了高版本的PyTorch。PyTorch 2.x 版本开始采用C++17编译,MMCV的低版本用C++14编译。
参考:https://wowfool.com/2023/11/12/fix-problems-with-install-mmtracking/
- ……
6万+

被折叠的 条评论
为什么被折叠?



