Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error on line 18: from diffusers import StableDiffusionPipeline #3

Open
erickuhn19 opened this issue Sep 4, 2022 · 2 comments

Comments

@erickuhn19
Copy link

_Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html_

I went through the troubleshooting steps and I am using sd_playground2 as my interpreter via miniconda3

@Bernd-T
Copy link

Bernd-T commented Sep 22, 2022

I had the same error - I've solved it by starting VisualStudio Code via the Miniconda console with the command code . after I've activated the "sd_playground" enviroment in the Miniconda console.

Don't know if this was the actual fix or just by coincidence...

...now I'm having trouble with "Windows requires Developer Mode to be activated, or to run Python as an administrator, in order to create symlinks." but that's another story... Update: I had to activate the developer Mode on my Computer (Settings -> Update & Security -> For Developers ), now it works

@ArtoriaKawaii
Copy link

Solved by upgrading the diffuser and transformers packages to the latest, which are 0.17.1 and 4.30.2 respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants