According to https://kivymd.readthedocs.io/en/latest/getting-started/#installation:
pip install kivymd/KivyMD
Also you can install manually from sources. Just clone the project and run pip:
git clone https://github.com/kivymd/KivyMD.git --depth 1
cd KivyMD
pip install .