mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
(installer) do not install if already in a venv
This commit is contained in:
parent
d209dab881
commit
ebe6daac56
@ -35,9 +35,9 @@ class Installer:
|
|||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.reqs = INSTALLER_REQS
|
self.reqs = INSTALLER_REQS
|
||||||
self.preflight()
|
self.preflight()
|
||||||
if os.getenv("VIRTUAL_ENV") is None:
|
if os.getenv("VIRTUAL_ENV") is not None:
|
||||||
# Only bootstrap if not already in a venv
|
raise NotImplementedError("A virtual environment is already activated. Please 'deactivate' before installation.")
|
||||||
self.bootstrap()
|
self.bootstrap()
|
||||||
|
|
||||||
def preflight(self) -> None:
|
def preflight(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user