我在启动Automatic1111时遇到错误。

huangapple go评论96阅读模式
英文:

I get an error when launching Automatic1111

问题

嗨!最近我安装了 Automatic1111 用于 Stable Diffusions web UI,但每当我尝试启动它时,命令提示符中会出现以下错误消息:

ImportError: 无法从部分初始化的模块 'numpy' 中导入名称 'lib'(很可能是由于循环导入引起的)(C:\Users\Student\OneDrive - Xenter Botkyrka\Dokument\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\numpy\__init__.py)

我可以尝试什么来解决这个问题?

(我已尝试重新安装 Python 和 Anaconda)

英文:

(Heads up that I know close to nothing about coding. I just watch tutorials and follow along)

Hi! I recently installed Automatic1111 for Stable Diffusions web UI, but whenever I try to launch it I get this error message in the command prompt:

ImportError: cannot import name 'lib' from partially initialized module 'numpy' (most likely due to a circular import) (C:\Users\Student\OneDrive - Xenter Botkyrka\Dokument\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\numpy\__init__.py)

What can I try to solve it?

(I have tried re-installing python and Anaconda)

答案1

得分: 2

Solved it! The problem was that A1111 was installed to my Documents folder while the documents folder were synced with Onedrive, which led to A1111 be located there as well. I stopped the sync, installed A1111 in my regular documents folder and run the app with no problem!

英文:

Solved it! The problem was that A1111 was installed to my Documents folder while the documents folder were synced with Onedrive, which led to A1111 be located there as well. I stopped the sync, installed A1111 in my regular documents folder and run the app with no problem!

huangapple
  • 本文由 发表于 2023年3月9日 21:02:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685006.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定