You should install 🤗 Diffusers in a [virtual environment](https://docs.python.org/3/library/venv.html).
If you're unfamiliar with Python virtual environments, take a look at this [guide](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/).
A virtual environment makes it easier to manage different projects and avoid compatibility issues between dependencies.  
Start by creating a virtual environment in your project directory:  
```bash
python -m venv .env
```  
Activate the virtual environment:  
```bash
source .env/bin/activate
```  
You should also install 🤗 Transformers because 🤗 Diffusers relies on its models:  
<frameworkcontent>
<pt>
Note - PyTorch only supports Python 3.8 - 3.11 on Windows.
```bash
pip install diffusers["torch"] transformers
```
</pt>
<jax>
```bash
pip install diffusers["flax"] transformers
```
</jax>
</frameworkcontent>
/Users/nielsrogge/Documents/python_projecten/diffusers/docs/source/en/installation.md