-
Notifications
You must be signed in to change notification settings - Fork 771
Open
Description
I was not able to start the project on MacOS
➜ langchain-crash-course git:(main) ✗ sw_vers
ProductName: macOS
ProductVersion: 14.6.1
BuildVersion: 23G93
Error I get:
➜ langchain-crash-course git:(main) ✗ poetry install --no-root
Installing dependencies from lock file
Package operations: 12 installs, 1 update, 0 removals
- Updating torch (2.2.2 -> 2.3.1): Failed
RuntimeError
Unable to find installation candidates for torch (2.3.1)
at ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/poetry/installation/chooser.py:74 in choose_for
70│
71│ links.append(link)
72│
73│ if not links:
→ 74│ raise RuntimeError(f"Unable to find installation candidates for {package}")
75│
76│ # Get the best link
77│ chosen = max(links, key=lambda link: self._sort_key(package, link))
78│
Cannot install torch.
I tried https://stackoverflow.com/a/76359919/478584 but it did not help.
Workaround:
python -m venv venv
source venv/bin/activate
pip install python-dotenv langchain langchain-community langchain-openai langchain-anthropic langchain-google-genai langchain-google-firestore firestore chromadb tiktoken sentence-transformers bs4 firecrawl-py langchainhub wikipedia tavily-python
NOTE: pip installed torch-2.2.2-cp311-none-macosx_10_9_x86_64.whl
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels