Skip to content

Installing Ollama on Windows 11

  • Windows 11 with WSL2 installed and configured (Guide).
  1. Open PowerShell (as administrator) and enable WSL and Virtual Machine Platform:
Terminal window
wsl --install
  1. Install Ubuntu from the Microsoft Store:
  • Open Microsoft Store, search for β€œUbuntu”, and click Install.
  1. Launch Ubuntu (Terminal opens after installing):
  • Set your Linux username and password.
  1. Install Ollama within the Ubuntu (WSL) terminal:
Terminal window
curl -fsSL https://ollama.com/install.sh | sh
  1. Verify installation by running:
Terminal window
ollama --version
  • Run your first model (e.g., Llama2):
Terminal window
ollama run llama2
  • Ollama automatically downloads the model and begins a conversation.
  • Run the server:
Terminal window
ollama serve
  • API endpoint: http://localhost:11434