在我的环境里这么操作是没问题的,如果大家遇到不一样的问题,就再多搜搜细心分析,肯定能解决的~
我的环境:
系统:Ubuntu 22.04
Python:3.8(conda)
1 为什么遇到这个问题
我在安装和使用3D Gaussian Splatting项目时,其中两个子模块:submodules/diff-gaussian-rasterization 和 submodules/simple-knn,安装时报错:
类似这些:
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
查了半天才发现是因为 CUDA版本不对,我目前是11