mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Make sure that API requirements are installed
This commit is contained in:
parent
cbf2b47476
commit
e7d460d932
@ -316,6 +316,11 @@ def update_requirements(initial_installation=False):
|
|||||||
run_cmd("python -m pip uninstall -y " + package_name, environment=True)
|
run_cmd("python -m pip uninstall -y " + package_name, environment=True)
|
||||||
print(f"Uninstalled {package_name}")
|
print(f"Uninstalled {package_name}")
|
||||||
|
|
||||||
|
# Make sure that API requirements are installed (temporary)
|
||||||
|
extension_req_path = os.path.join("extensions", "openai", "requirements.txt")
|
||||||
|
if os.path.exists(extension_req_path):
|
||||||
|
run_cmd("python -m pip install -r " + extension_req_path + " --upgrade", environment=True)
|
||||||
|
|
||||||
# Install/update the project requirements
|
# Install/update the project requirements
|
||||||
run_cmd("python -m pip install -r temp_requirements.txt --upgrade", assert_success=True, environment=True)
|
run_cmd("python -m pip install -r temp_requirements.txt --upgrade", assert_success=True, environment=True)
|
||||||
os.remove('temp_requirements.txt')
|
os.remove('temp_requirements.txt')
|
||||||
|
Loading…
Reference in New Issue
Block a user