Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
38.33k stars 4.95k forks source link

[Help required] Python is strange #321

Open HaydenAlt opened 12 months ago

HaydenAlt commented 12 months ago

(I'm new to github so I am basically a noob :/) So basically, I was trying to setup stable diffusion and this keeps poping up:

Creating venv in directory C:\Users\User\stable-diffusion-webui\venv using python "C:\Users\User\AppData\Local\Programs\Python\Python310\python.exe"
Unable to create venv in directory "C:\Users\User\stable-diffusion-webui\venv"

exit code: 1

stderr:
Error: Command '['C:\\Users\\User\\stable-diffusion-webui\\venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

I tried deleting the venv folder and reinstalling python, and it wont work. I have python 3.10.6 and git, does anyone know whats wrong?

sharmavaibhav22 commented 6 months ago

1) verify the python version installed, if it is the correct and also if the path variable set to the directory is correct 2) Also, You can use pipenv to create virtual environments in python. Please find the doc here https://pipenv.pypa.io/en/latest/