mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Update one_click.py to initialize site_packages_path variable (#4118)
This commit is contained in:
parent
3fb1e0236a
commit
e145d9a0da
@ -55,6 +55,7 @@ def cpu_has_avx2():
|
|||||||
|
|
||||||
|
|
||||||
def torch_version():
|
def torch_version():
|
||||||
|
site_packages_path = None
|
||||||
for sitedir in site.getsitepackages():
|
for sitedir in site.getsitepackages():
|
||||||
if "site-packages" in sitedir and conda_env_path in sitedir:
|
if "site-packages" in sitedir and conda_env_path in sitedir:
|
||||||
site_packages_path = sitedir
|
site_packages_path = sitedir
|
||||||
@ -69,6 +70,7 @@ def torch_version():
|
|||||||
|
|
||||||
|
|
||||||
def is_installed():
|
def is_installed():
|
||||||
|
site_packages_path = None
|
||||||
for sitedir in site.getsitepackages():
|
for sitedir in site.getsitepackages():
|
||||||
if "site-packages" in sitedir and conda_env_path in sitedir:
|
if "site-packages" in sitedir and conda_env_path in sitedir:
|
||||||
site_packages_path = sitedir
|
site_packages_path = sitedir
|
||||||
|
Loading…
Reference in New Issue
Block a user