```bash
git clone https://github.com/huggingface/diffusers
cd diffusers
pip install .
```  
Navigate to the example folder with the training script and install the required dependencies for the script you're using:  
<hfoptions id="installation">
<hfoption id="PyTorch">  
```bash
cd examples/textual_inversion
pip install -r requirements.txt
```  
</hfoption>
<hfoption id="Flax">  
```bash
cd examples/textual_inversion
pip install -r requirements_flax.txt
```  
</hfoption>
</hfoptions>  
<Tip>