pip install cmake --upgrade
cmake --version 查看版本号
若cmake .. 报错 :
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/.../.../...
CMake Error: Error executing cmake::LoadCache(). Aborting.
运行
hash -r
清除缓存即可