Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up Conda and Python for Stable Diffusion

I want to setup Stable Diffusion (server?) to emulate some scenes in some works of fiction I've worked on over the years (e.g. "self-made" concept art). However even as a developer I'm completely lost on the provided instructions as I'm not familiar with any of the prerequisites involved.

I've obviously have read the readme file and installed Conda however the instructions are extremely lacking as they clearly presume you already know what you're doing. Then after installation I ran the very first command:

(base) PS C:\Users[user]> conda env create -f environment.yaml

I received the following error:

EnvironmentFileNotFound: 'C:\Users[user]\environment.yaml' file not found

How do I properly setup Conda, Python and Stable Diffusion?

I'm interested in getting through the whole process, not just the first error.

like image 678
John Avatar asked Jun 16 '26 18:06

John


1 Answers

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.

like image 133
C.Nivs Avatar answered Jun 18 '26 07:06

C.Nivs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!