InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: conda environment installation failing, fix included

Open veprogames opened this issue 4 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

No response

What happened?

When running conda env create -f environments-and-requirements/environment-lin-cuda.yml, the installation fails with

file://<project path>/environments-and-requirements (from -r <project path>/environments-and-requirements/condaenv.7w8aoe5f.requirements.txt (line 31)) does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

This is probably a context from folder context, as it tries to do pip install ./environments-and-requirements

I fixed it by replacing -e . with -e ../ in environments-and-requirements/environment-lin-cuda.yml (should be applied to others too)

Screenshots

No response

Additional context

No response

Contact Details

No response

veprogames avatar Nov 13 '22 19:11 veprogames

If your doing manual install for v2.1.3 you need to copy your appropriate yml to InvokeAI's top-level directory and rename it environment.yml, and run the conda create from there, (you dont need to rename if you use the -f option when using conda create, but it needs to be in the top directory to avoid errors)

mickr777 avatar Nov 13 '22 21:11 mickr777

I should've read the documentation better, I'm closing this.

veprogames avatar Nov 15 '22 18:11 veprogames