khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

ERROR: Cannot install khoj because these package versions have conflicting dependencies[FIX] #873

Closed diweiqiang closed 2 weeks ago

diweiqiang commented 1 month ago

Describe the bug

when i install khoj in my mac with Intel Machines, run "python -m pip install khoj" and i got the following error: ERROR: Cannot install khoj because these package versions have conflicting dependencies.

debanjum commented 1 month ago

Hey @diweiqiang, can you share more details of the error message you saw? A screenshot or the complete error log when installing khoj would be helpful to debug the issue

diweiqiang commented 1 month ago

image Error message as above.

shantanuSakpal commented 1 month ago

hey @diweiqiang did you start the virtural environment before installing the libraries?

# Get Khoj Code
git clone https://github.com/khoj-ai/khoj && cd khoj

# Create, Activate Virtual Environment
python3 -m venv .venv && source .venv/bin/activate

# For MacOS or zsh users run this
pip install -e '.[dev]'
diweiqiang commented 1 month ago

I enabled the conda virtual environment, but did not execute the command “pip install -e '.[dev]',” which may be the cause of the problem. Thank you very much for pointing out the correct way to execute it.

shantanuSakpal commented 1 month ago

Great. You can see further installation details at https://docs.khoj.dev/contributing/development/

sabaimran commented 2 weeks ago

Thanks for supplying the fix @shantanuSakpal . @diweiqiang , it would also be helpful to know which command you originally used for install.