mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
1.5 KiB
1.5 KiB
Windows Installation
These steps can be used to setup Khoj on a clean, new Windows 11 machine. It has been tested on a Windows VM
Prerequisites
- Ensure you have Visual Studio C++ Build tools installed. You can download it from Microsoft here. At the minimum, you should have the following configuration:
- Ensure you have Python installed. You can check by running
python --version
. If you don't, install the latest version from here.- Ensure you have pip installed:
py -m ensurepip --upgrade
.
- Ensure you have pip installed:
Quick start
- Open a PowerShell terminal.
- Run
pip install khoj-assistant
- Start Khoj with
khoj
Installation in a Virtual Environment
Use this if you want to install with a virtual environment. This will make it much easier to manage your dependencies. You can read more about virtual environments here.
- Open a PowerShell terminal with the
Run as Administrator
privileges. - Create a virtual environment:
mkdir khoj && cd khoj && py -m venv .venv
- Activate the virtual environment:
.\.venv\Scripts\activate
. If you get a permissions error, then runSet-ExecutionPolicy -ExecutionPolicy RemoteSigned
. - Run
pip install khoj-assistant
- Start Khoj with
khoj