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
  2. Install Ubuntu from the Microsoft Store:

    • Open Microsoft Store, search for β€œUbuntu”, and click Install.
  3. Launch Ubuntu (Terminal opens after installing):

    • Set your Linux username and password.
  4. Install Ollama within the Ubuntu (WSL) terminal:

    Terminal window
    curl -fsSL https://ollama.com/install.sh | sh
  5. 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