InvokeAI/installer
Lincoln Stein 1219c39d78
Lstein installer improvements (#1954)
* add logic for finding the root (runtime) directory

This commit fixes the root search logic to be as follows:

1) The `--root_dir` command line argument
2) The contents of environment variable INVOKEAI_ROOT
3) The VIRTUAL_ENV environment variable, plus '..'
4) $HOME/invokeai

(3) is the new feature. Since we are now recommending to install
InvokeAI and its dependencies into the .venv in the root directory,
this should be a reliable choice.

* make installer scripts more robust

This commits improves the installer .sh and .bat scripts in the following
ways:

1. They now handle folder/directory names containing spaces.
2. Pip will be installed into the .venv using the `ensurepip`
   module.

This addresses issues identified by @vargol in Issue #1941

* add --prefer-binary option to pip install

* fix unset variable crash

* add patch level to zip file name

* Fix crash introduced in #1948
2022-12-13 01:15:11 -05:00
..
templates Simple Installer for Unified Directory Structure, Initial Implementation (#1819) 2022-12-11 00:37:08 -05:00
create_installer.sh Lstein installer improvements (#1954) 2022-12-13 01:15:11 -05:00
install.bat.in Lstein installer improvements (#1954) 2022-12-13 01:15:11 -05:00
install.sh.in Lstein installer improvements (#1954) 2022-12-13 01:15:11 -05:00
readme.txt Simple Installer for Unified Directory Structure, Initial Implementation (#1819) 2022-12-11 00:37:08 -05:00
WinLongPathsEnabled.reg Simple Installer for Unified Directory Structure, Initial Implementation (#1819) 2022-12-11 00:37:08 -05:00

InvokeAI

Project homepage: https://github.com/invoke-ai/InvokeAI

Preparations:

  You will need to install Python 3.9 or higher for this installer
  to work. Instructions are given here:
  https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/

  Before you start the installer, please open up your system's command
  line window (Terminal or Command) and type the commands:

     python --version

  If all is well, it will print "Python 3.X.X", where the version number
  is at least 3.9.1

  If this works, check the version of the Python package manager, pip:

     pip --version

  You should get a message that indicates that the pip package
  installer was derived from Python 3.9 or 3.10. For example:
  "pip 22.3.1 from /usr/bin/pip (python 3.9)"

Long Paths on Windows:

  If you are on Windows, you will need to enable Windows Long Paths to
  run InvokeAI successfully. If you're not sure what this is, you
  almost certainly need to do this.

  Simply double-click the "WinLongPathsEnabled.reg" file located in
  this directory, and approve the Windows warnings. Note that you will
  need to have admin privileges in order to do this.

Launching the installer:

  Windows: double-click the 'install.bat' file (while keeping it inside
  the InvokeAI-Installer folder).

  Linux and Mac: Please open the terminal application and run
  './install.sh' (while keeping it inside the InvokeAI-Installer
  folder).

The installer will create a directory named "invokeai" in the folder
of your choice. This directory contains everything you need to run
invokeai. Once InvokeAI is up and running, you may delete the
InvokeAI-Installer folder at your convenience.

For more information, please see
https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/