The reason your commands aren't working is that you need to git clone the repository first:

git clone https://github.com/CompVis/stable-diffusion.git

Which will drop a stable-diffusion folder where you ran the command. Once you cd into that directory, you should see an environment.yaml file that you can use for your conda commands:

cd stable-diffusion

conda env create -f ./environment.yaml

If you don't have git installed, you'll want to use a suitable installer from here.

Answer from C.Nivs on Stack Overflow
🌐
Reddit
reddit.com › r/stablediffusion › installing stable diffusion within anaconda enviroment
r/StableDiffusion on Reddit: Installing Stable Diffusion within Anaconda Enviroment
June 10, 2023 -

Hi diffusers! Before I was able to run SD in my global enviroment. But I started to work with other projects with different Anaconda enviroments. So I also tried to reinstall SD within Anaconda enviroment with following couple of tutorials. But It didn't work out. The thing is there are very few tutorials about installing it within virtual enviroment and these are kinda outdated. Have you tried to do it? Could you provide me some guidance to install SD using Anaconda?

P.S: I also noticed that I really didn't get the difference between stable-diffusion and stable-diffusion-webui.

Edit: I managed it with this tutorial. There are some slightly differences but the tutorial was helpful. Maybe I could post my own tutorial in sub.

Top answer
1 of 2
4
Start with the first bit -- you almost certainly want the "Stable-diffusion-webui" install. That's the currently updated version for Automatic1111. The "Stable Diffusion" install is for the server alone, without the UI wrapper. Most folks want the UI wrapper -- there are a few widely available varieties (A1111, InvokeAI, ComfyUI, and VladDiffusion). I prefer A1111 myself, its the most widely used, and more importantly, its the one I use. Understand that https://github.com/AUTOMATIC1111/stable-diffusion-webui is for A1111 if you wanted Invoke AI, it would be at https://github.com/invoke-ai/InvokeAI Anaconda -- what it is, why you'd use it, why I mostly don't Anaconda is an Python application and environment installation manager. It basically sets up the silo'd playgrounds for an application you'd like to install, and keep separate from others. Say, for example, you want be running Python 3.11 (the most current) for some development project, you want to run Python 3.10.6 for Stable Diffusion, and you want to run Python 2.8 for some historical libraries. IMPORTANT: Stable Diffusion will NOT run on the most current version of Python, which will inconveniently be the version you'd install in a Python installer by default. You MUST select an earlier version, 3.10.6 . . . this is an incredibly common frustration for new users You can use Anaconda to create discrete silos with versions of Python and specific applications that run in that silo, with that version. Otherwise with a generic Python environment install, that will be the Python environment for _everything_ [I am simplifying here, there are actually ways to limit scope for Python environments, but thats another story] Personally, I have one machine with Anaconda, where I do need old Python code running. The newer machine, which I devote to Stable Diffusion, I didn't need the silos, so just installed Python 3.10.6 globally. For a inexperienced user, skipping Anaconda is the better choice IMO. It does give you power and flexibility, but it makes a lot f stuff harder
2 of 2
1
Would you mind sharing/posting your tutorial? I have a need to do this.
Top answer
1 of 2
6

The reason your commands aren't working is that you need to git clone the repository first:

git clone https://github.com/CompVis/stable-diffusion.git

Which will drop a stable-diffusion folder where you ran the command. Once you cd into that directory, you should see an environment.yaml file that you can use for your conda commands:

cd stable-diffusion

conda env create -f ./environment.yaml

If you don't have git installed, you'll want to use a suitable installer from here.

2 of 2
0

Yes, there are those "easy" options too, such as .exe and .dmg installer files for Windows and Mac's respectively.

There are also some simpler than what you found daunting, but less limited than the above pre-defined, self-contained options, such as via: https://github.com/cmdr2/stable-diffusion-ui

Every option/approach has its trade-offs.

The underlying issue you are contending with is that you are jumping in at the point of 400% - 1,000% yearly AI growth rates and all the rapid changes in evolution and options that this implies, and the desire to bypass the challenge on jumping onto the rapid technology, code and related options that this is. Many of the people, groups and companies powering this amazing revolution and growth rates and sharing this with others also have time constraints, and therefor are fine providing standard modes of setup and access via industry-standard tools and methods like GitHub, Conda, Brew and other such tools. However, a certain percentage of people will be frustrated by this. For them, there are other simplified, less leading-edge access options.

While there are simple installs that are self-contained and relatively easy, they by their nature provide a smaller slice of any given area of AI, which is simplifying for the knowledge/time-constrained individual at the expense of limiting access to many the latest installable or other options.

You can also just use an online version of it where someone has done the more difficult installation and configuration work for you. From Mid Journey and Google Colab options to things you can simply find by searching for online stable diffusion, such as: https://stablediffusionweb.com

🌐
Anaconda
anaconda.com › home › blog › stable diffusion: why are diverse results so hard to come by?
Anaconda | Stable Diffusion: Why Are Diverse Results So Hard to Come…
October 3, 2025 - By now you’ve probably heard about Stability AI’s Stable Diffusion , a text-to-image machine learning (ML) model that generates images based on…
🌐
GitHub
github.com › AlbertDeFusco › stable-diffusion-cpu
GitHub - AlbertDeFusco/stable-diffusion-cpu: Run stable diffusion on CPU using conda
Run stable diffusion on CPU using conda. Contribute to AlbertDeFusco/stable-diffusion-cpu development by creating an account on GitHub.
Author   AlbertDeFusco
🌐
Anaconda
anaconda.com › app › stable-diffusion-cpu-with-anaconda
How to run Stable Diffusion on a CPU with Anaconda
Anaconda simplifies, safeguards, and accelerates open-source AI with a trusted platform, enabling secure scaling, real-time insights, and community collaboration.
🌐
GitHub
github.com › AUTOMATIC1111 › stable-diffusion-webui › discussions › 13620
How to properly use webui with conda environment? · AUTOMATIC1111/stable-diffusion-webui · Discussion #13620
call C:\Users\user\miniconda3\Scripts\activate.bat stablediffusion @echo off cd stable-diffusion-webui set PYTHON= set GIT= set VENV_DIR=- set COMMANDLINE_ARGS=--no-half-vae --opt-sdp-attention set SAFETENSORS_FAST_GPU=1 call webui.bat
Author   AUTOMATIC1111
🌐
Anaconda Forum
forum.anaconda.com › technical topics › data science, ml & ai
Running Stable Diffusion - Data Science, ML & AI - Anaconda Forum
September 27, 2022 - Hi, all. I’ve gotten Stable Diffusion running on a CPU using anaconda-project, which is provided by default when you install the Anaconda Distribution, to automate conda environment setup and launching of the Jupyter Notebook. Here’s my project Stable Diffusion Cpu :: Anaconda.org https://github.com/albertdefusco/stable-diffusion-cpu This project will work on Mac, Linux, and Windows.
Find elsewhere
🌐
DeepLizard
deeplizard.com › lesson › sda2dziral
Automatic1111 & Stable Diffusion - AI Art Course Install & Setup - deeplizard
This is a quick overview for getting up and running with Stable Diffusion on a local GPU. See the specific sections below for more details. Download and install Git · Download and install Miniconda · Search for the Miniconda app: Select: Anaconda PowerShell Prompt (miniconda3) Create an environment: conda create -n sd python=3.10.6 -y ·
🌐
Weird Wonderful AI Art
weirdwonderfulai.art › resources › run-stable-diffusion-locally-on-windows
Run Stable Diffusion Locally on Windows | Weird Wonderful AI Art
Install git through anaconda: conda install -c anaconda git -y · Clone the github repository: git clone -b local https://github.com/deforum/stable-diffusion.git cd stable-diffusion
🌐
Sakari Niittymaa
sakari.niittymaa.com › home › blog › install stable diffusion web ui using wsl and anaconda
Install Stable Diffusion Web UI using WSL and Anaconda - Sakari Niittymaa
January 26, 2023 - Alternatively, you can also launch it from the Windows Start menu, it should be listed there after it has been installed. wsl -d ubuntu # Navigate to your Ubuntu home folder, regardless of your current location, use the command 'cd ~'. cd ~ # Download Anaconda wget https://repo.continuum.io/archive/Anaconda3-2022.10-Linux-x86_64.sh # Install Anaconda bash Anaconda3-2022.10-Linux-x86_64.sh # Restart Terminal and start it again exit # Clone Stable Diffusion Web UI Repo git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git # Create conda environment (Run this command in the "stabl
🌐
Toolify
toolify.ai › ai-news › easy-guide-install-and-run-stable-diffusion-on-any-gpu-77552
Easy Guide: Install and Run Stable Diffusion on Any GPU!
Before we begin, let's take a look at the system requirements for running Stable Diffusion. Please ensure that your system meets the following requirements: A GPU with at least 8GB of VRAM (4GB if using a different script) ... To get started, you need to install Anaconda, a Python distribution that provides a powerful environment for scientific computing.
🌐
Reddit
reddit.com › r/stablediffusion › anaconda
r/StableDiffusion on Reddit: Anaconda
September 15, 2021 -

Recently I have been trying to find ways to get around the "Cuda" problem when generating using control net. I saw a video to download Anaconda and a Cuda 12.2.0. I can now generate photos using control net but now it takes upwards of 20-30 minutes to generate one picture as before, it only took 1-2 minutes. Does Python not work with Anaconda? I am a complete newbie when it comes to this. My command arg. are (--medvram --xformers --no-half --autolaunch)

🌐
GitHub
github.com › AUTOMATIC1111 › stable-diffusion-webui › issues › 10539
[Bug]: Run in a virtual environment called“Anaconda.” A bug while running“webui-user.bat” · Issue #10539 · AUTOMATIC1111/stable-diffusion-webui
March 31, 2023 - When I ran the project in Anaconda's virtual environment, it automatically installed the required packages and ran normally, but when I exited. This error occurs the second time you want to run it-"exit code: 1 stderr: E:\anaconda\envs\stableDiffusion\python.exe: No module named pip"
Published   May 19, 2023
🌐
GitHub
github.com › CompVis › stable-diffusion › issues › 223
installed anaconda not sure what to do from here · Issue #223 · CompVis/stable-diffusion
March 30, 2022 - im new to linux, i have installed and set up anaconda & cloned stable diffusion via github cli, not sure what to do from there.
Published   Sep 08, 2022
🌐
AssemblyAI
assemblyai.com › blog › how-to-run-stable-diffusion-locally-to-generate-images
How to Run Stable Diffusion Locally to Generate Images
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh bash Miniconda3-py38_4.12.0-Linux-x86_64.sh · Hold down Enter to get through license and then type "yes" to continue when prompted. Next, press Enter to confirm the installation location, and then type "yes" when asked if the installer should initialize Miniconda. Finally, close the terminal and then open a new one where you want to install Stable Diffusion...
🌐
GPU Mart
gpu-mart.com › blog › install-stable-diffusion-on-windows
How to install Stable Diffusion AUTOMATIC1111 on Windows
(StableDiffusion) D:\github\stable-diffusion-webui>webui.bat --xformers venv "D:\github\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.11 | packaged by Anaconda, Inc.
🌐
Stack Overflow
stackoverflow.com › questions › 77409705 › need-assistance-in-setting-up-stable-diffusion-with-anaconda-navigator
Need assistance in setting up stable diffusion with Anaconda Navigator - Stack Overflow
I am a beginner in setting up stable diffusion locally on my pc and I would like to use Anaconda Navigator to generate AI art. I am quite a geek in overall PC and have mediocre experience in C# programming. But I never ever discovered the world of Python. So I am quite confused in multiple missing libraries, files missing while trying to generate art and I decided to start installation of the Anaconda Navigator and stable diffusion afresh.