generative-models icon indicating copy to clipboard operation
generative-models copied to clipboard

ModuleNotFoundError: No module named 'pytorch_lightning'

Open zparadox opened this issue 2 years ago • 5 comments

I've installed pytorch lightning using pip install lightning and even tried conda install lightning -c conda-forge

Still getting the error below:

File "\generative-models\scripts\demo\sampling.py", line 1, in from pytorch_lightning import seed_everything ModuleNotFoundError: No module named 'pytorch_lightning'

zparadox avatar Nov 22 '23 18:11 zparadox

Did you make sure to install all the requirements in https://github.com/Stability-AI/generative-models/blob/main/requirements/pt2.txt

hammad93 avatar Nov 22 '23 19:11 hammad93

Did you make sure to install all the requirements in https://github.com/Stability-AI/generative-models/blob/main/requirements/pt2.txt

Yep, ran pip install -r requirements/pt2.txt

zparadox avatar Nov 22 '23 19:11 zparadox

Did you make sure to install all the requirements in https://github.com/Stability-AI/generative-models/blob/main/requirements/pt2.txt

Yep, ran pip install -r requirements/pt2.txt

By the way this is on Windows 10 with Conda

zparadox avatar Nov 22 '23 19:11 zparadox

see https://github.com/Stability-AI/generative-models/issues/172, it might help you

5shekel avatar Nov 23 '23 07:11 5shekel

I am experiencing the same issue, but on M2 macOS Sonoma with python 3.9.6.

Update: nvm, I got passed this error by installing torch via conda using these instructions: https://pytorch.org/get-started/locally/

And then re-running the pip3 install -r requirements/pt2.txt command.

jsbakker avatar Dec 13 '23 08:12 jsbakker