Manual Installation
Esta página aún no está disponible en tu idioma.
Are you in the right place?
Section titled “Are you in the right place?”Your setup
Section titled “Your setup”Commands that differ by operating system or GPU are listed for every setup, each labeled with the setup it applies to.
Showing commands for
Walkthrough
Section titled “Walkthrough”We’ll use uv to install python and create a virtual environment, then install the invokeai package. uv is a modern, very fast alternative to pip.
The following commands vary depending on the version of Invoke being installed and the system onto which it is being installed.
-
Install
uvas described in its docs. We suggest using the standalone installer method.Run
uv --versionto confirm thatuvis installed and working. After installation, you may need to restart your terminal to get access touv. -
Create a directory for your installation, typically in your home directory (e.g.
~/invokeaior$Home/invokeai):Windows
Terminal window mkdir $Home/invokeaicd $Home/invokeaimacOS, Linux
Terminal window mkdir ~/invokeaicd ~/invokeai -
Create a virtual environment in that directory:
Every setup except Windows · ARM64
Terminal window uv venv --relocatable --prompt invoke --python 3.12 --python-preference only-managed .venvWindows · ARM64
Terminal window uv venv --relocatable --prompt invoke `--python cpython-3.12-windows-aarch64-none --python-preference only-managed .venvThis command creates a portable virtual environment at
.venvcomplete with a portable python 3.12. It doesn’t matter if your system has no python installed, or has a different version -uvwill handle everything.Windows · ARM64
-
Activate the virtual environment:
Windows
Terminal window .venv\Scripts\activatemacOS, Linux
Terminal window source .venv/bin/activate -
Choose a version to install.
View Releases
-
Determine the package specifier to use when installing:
invokeai, plus any of these extras in brackets, separated by commas.Windows, Linux · NVIDIA
cuda, if you use--torch-backend=cu130in the next step (Nvidia GPU on Windows x64 or Linux x86_64). It installs the PyTorch build Invoke is tested with and, on Windows, Triton. Add it only for Invoke 7 or newer, and never with another torch backend: it pins PyTorch’s CUDA 13 build, which no other backend provides.xformers, if you have an Nvidia 16xx or 20xx series GPU. This is a performance optimization.
For example
invokeai[cuda]for a 30xx series GPU or newer, orinvokeai[cuda,xformers]for a 16xx or 20xx series GPU.Every setup except NVIDIA
Use
invokeaiwithout extras. Thecudaextra is only for--torch-backend=cu130(Nvidia GPU on Windows x64 or Linux x86_64): it pins PyTorch’s CUDA 13 build, which no other backend provides. Thexformersextra is only for Nvidia 16xx or 20xx series GPUs. -
Determine the torch backend to use for installation, if any. This is necessary to get the right version of torch installed. This is achieved by using UV’s built in torch support.
Windows, Linux · NVIDIA
Use:
Terminal window --torch-backend=cu130Windows, Linux · Intel Arc
Use:
Terminal window --torch-backend=xpuWindows · AMD
Do not use a torch backend. AMD publishes its ROCm wheels on its own index, with the GPU kernels in a separate package per GPU target. In the next step, pin them for your GPU’s target and point
uvat that index instead.Linux · AMD
Do not use a torch backend. In the next step, install AMD’s ROCm 10 wheels from AMD’s index, as the launcher does, with the GPU kernels pinned for your GPU’s target.
ROCm 10 has no kernels for Vega-based cards (gfx900/gfx906). For those, use PyTorch’s ROCm 7.2 build instead:
Terminal window --torch-backend=rocm7.2Windows · ARM64
Do not use a torch backend. torch comes from NVIDIA’s own index, and three packages that have no ARM64 build on PyPI (OpenCV, blake3, tiktoken) come from wheels Invoke publishes. Use these two options instead of
--torch-backend:Terminal window --index https://pypi.nvidia.com/nvtorch_oot/ --find-links https://github.com/invoke-ai/InvokeAI/releases/download/win-arm64-wheels-v1/index.htmlWith or without an NVIDIA GPU: this is the only torch build for Windows ARM64. See the system requirements for the platform’s feature differences.
Linux · None (CPU)
On
x86_64, use:Terminal window --torch-backend=cpuOn ARM64 (
aarch64, e.g. Raspberry Pi 5), do not use a torch backend. The default PyPI wheels are CPU-only on ARM64 and work out of the box.Windows · Other / none
Do not use a torch backend.
macOS
Do not use a torch backend.
-
Install the
invokeaipackage. Substitute the package specifier and version.Windows · NVIDIA
Terminal window uv pip install "<PACKAGE_SPECIFIER>==<VERSION>" `--python 3.12 --python-preference only-managed `--torch-backend=cu130 --force-reinstallLinux · NVIDIA
Terminal window uv pip install "<PACKAGE_SPECIFIER>==<VERSION>" \--python 3.12 --python-preference only-managed \--torch-backend=cu130 --force-reinstallWindows · Intel Arc
Terminal window uv pip install "<PACKAGE_SPECIFIER>==<VERSION>" `--python 3.12 --python-preference only-managed `--torch-backend=xpu --force-reinstallLinux · Intel Arc
Terminal window uv pip install "<PACKAGE_SPECIFIER>==<VERSION>" \--python 3.12 --python-preference only-managed \--torch-backend=xpu --force-reinstallWindows · AMD
Also substitute your GPU’s
<TARGET>(see below).Terminal window uv pip install <PACKAGE_SPECIFIER>==<VERSION> `"torch[device-<TARGET>]==2.13.0+rocm10.0.0" `"torchvision[device-<TARGET>]==0.28.0+rocm10.0.0" `--index https://stable.repo.amd.com/rocm/whl-next/ `--index-strategy unsafe-best-match `--python 3.12 --python-preference only-managed `--force-reinstallLinux · AMD
Also substitute your GPU’s
<TARGET>(see below).Terminal window uv pip install <PACKAGE_SPECIFIER>==<VERSION> \"torch[device-<TARGET>]==2.13.0+rocm10.0.0" \"torchvision[device-<TARGET>]==0.28.0+rocm10.0.0" \--index https://stable.repo.amd.com/rocm/whl-next/ \--index-strategy unsafe-best-match \--python 3.12 --python-preference only-managed \--force-reinstallWindows · ARM64
Terminal window uv pip install <PACKAGE_SPECIFIER>==<VERSION> `--python cpython-3.12-windows-aarch64-none --python-preference only-managed `--index https://pypi.nvidia.com/nvtorch_oot/ `--find-links https://github.com/invoke-ai/InvokeAI/releases/download/win-arm64-wheels-v1/index.html `--force-reinstallLinux · None (CPU)
On
x86_64:Terminal window uv pip install "<PACKAGE_SPECIFIER>==<VERSION>" \--python 3.12 --python-preference only-managed \--torch-backend=cpu --force-reinstallOn ARM64 (
aarch64), without a torch backend:Terminal window uv pip install <PACKAGE_SPECIFIER>==<VERSION> \--python 3.12 --python-preference only-managed \--force-reinstallWindows · Other / none
Terminal window uv pip install <PACKAGE_SPECIFIER>==<VERSION> `--python 3.12 --python-preference only-managed `--force-reinstallmacOS
Terminal window uv pip install <PACKAGE_SPECIFIER>==<VERSION> \--python 3.12 --python-preference only-managed \--force-reinstallWindows, Linux · AMD
<TARGET>GPUs gfx1201RX 9070 series and Radeon AI PRO R9700 gfx1200RX 9060 series gfx1100RX 7900 series gfx1101RX 7700 and 7800 series gfx1102RX 7600 series gfx1151Ryzen AI Max For other GPUs, see AMD’s GPU target table.
Linux · AMD
For a Vega-based card (gfx900/gfx906), install PyTorch’s ROCm 7.2 build instead:
Terminal window uv pip install "<PACKAGE_SPECIFIER>==<VERSION>" \--python 3.12 --python-preference only-managed \--torch-backend=rocm7.2 --force-reinstall -
Deactivate and reactivate your venv so that the invokeai-specific commands become available in the environment:
Windows
Terminal window deactivate.venv\Scripts\activatemacOS, Linux
Terminal window deactivate && source .venv/bin/activate -
Run the application, specifying the directory you created earlier as the root directory:
Terminal window invokeai-web --root ~/invokeaiTo keep an existing install as it is, give v7 a directory of its own: see Run v7 alongside v6.
If you run Invoke on a headless server, you might want to install and run Invoke on the command line.
We do not plan to maintain scripts to do this moving forward, instead focusing our dev resources on the GUI launcher.
You can create your own scripts for this by copying the handful of commands in this guide. uv’s pip interface docs may be useful.