diff --git a/doc/install/install-from-source.md b/doc/install/install-from-source.md index dd28d86ae5..4d75d484ec 100644 --- a/doc/install/install-from-source.md +++ b/doc/install/install-from-source.md @@ -166,6 +166,13 @@ cd $deepmd_source_dir/source mkdir build cd build ``` + +The installation requires CMake 3.16 or later for the CPU version, CMake 3.23 or later for the CUDA support, and CMake 3.21 or later for the ROCM support. One can install CMake via `pip` if it is not installed or the installed version does not satisfy the requirement: + +```sh +pip install -U cmake +``` + I assume you have activated the TensorFlow Python environment and want to install DeePMD-kit into path `$deepmd_root`, then execute CMake ```bash cmake -DUSE_TF_PYTHON_LIBS=TRUE -DCMAKE_INSTALL_PREFIX=$deepmd_root ..