Skip to content
Snippets Groups Projects
Commit 924b6c88 authored by VAliquo's avatar VAliquo
Browse files

[UPDATE] Clean up Windows Ollama installation

parent 20c0d1a9
No related branches found
No related tags found
No related merge requests found
......@@ -67,25 +67,12 @@ def install_ollama() -> bool:
print("Please complete the Ollama installation. Once done, type 'c' and press Enter to continue.")
while input("Type 'c' to continue: ").strip().lower() != 'c':
print("Invalid input. Please type 'c' to continue.")
# Verify the installation
print("Verifying Ollama installation...")
result = subprocess.run(
["ollama", "--version"],
capture_output=True,
text=True,
)
if result.returncode == 0:
print(f"Ollama installed successfully: {result.stdout.strip()}")
else:
print("Ollama installation verification failed!")
print("stderr:", result.stderr.strip())
return False
else:
print("Unsupported platform for Ollama installation.")
return False
if not ollama_installed():
print("Oh dear, something went wrong installing Ollama.")
return False
print("Ollama installation succeeded!")
return True
except subprocess.CalledProcessError as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment