Skip to content

Commit

Permalink
fix: manually specify venv when installing invokeai pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Jan 24, 2025
1 parent 0455373 commit f00c16d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/install-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ export class InstallManager {
installInvokeArgs.push(`--index=${torchIndexUrl}`);
}

// Manually set the VIRTUAL_ENV environment variable to the venv path to ensure `uv` uses it correctly.
// Unfortunately there is no way to specify this in the `uv` CLI.
runProcessOptions.env.VIRTUAL_ENV = venvPath;

this.log.info('Installing invokeai package...\r\n');
this.log.info(`> ${uvPath} ${installInvokeArgs.join(' ')}\r\n`);

Expand Down

0 comments on commit f00c16d

Please sign in to comment.