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:   Copied python -m venv .env Activate the virtual environment:   Copied source .env/bin/activate You should also install 🤗 Transformers because 🤗 Diffusers relies on its models:   Pytorch  Hide Pytorch content  Note - PyTorch only supports Python 3.8 - 3.11 on Windows.   Copied pip install diffusers["torch"] transformers  JAX  Hide JAX content    Copied pip install diffusers["flax"] transformers   Install with conda After activating your virtual environment, with conda (maintained by the community):   Copied conda install -c conda-forge diffusers  Install from source Before installing 🤗 Diffusers from source, make sure you have PyTorch and 🤗 Accelerate installed. To install 🤗 Accelerate:   Copied pip install accelerate Then install 🤗 Diffusers from source:   Copied pip install git+https://github.com/huggingface/diffusers This command installs the bleeding edge main version rather than the latest stable version.