invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.77k stars 2.44k forks source link

[bug]: ModuleNotFoundError: No module named 'torch' #7249

Closed youxiandeduguo closed 3 weeks ago

youxiandeduguo commented 3 weeks ago

Is there an existing issue for this problem?

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

No response

GPU VRAM

No response

Version number

5.3.1

Browser

Microsoft Edge

Python dependencies

No response

What happened

I want to download an editable invoice version that uses CPU, and then I will follow the instructions in the document,I first created a virtual environment using Anaconda,then git clone https://github.com/invoke-ai/InvokeAI.git cd ./InvokeAI pip install -e ".[dev,test,xformers]" --use-pep517 --extra-index-url https://download.pytorch.org/whl/cpu

An error occurred during the process image

Afterwards, I tried to manually execute pip install torch

But it has no effect

What you expected to happen

I hope it can avoid reporting this error

How to reproduce the problem

git clone https://github.com/invoke-ai/InvokeAI.git cd ./InvokeAI pip install -e ".[dev,test,xformers]" --use-pep517 --extra-index-url https://download.pytorch.org/whl/cpu

Additional context

No response

Discord username

No response

thiagojramos commented 3 weeks ago

try:

pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu124