-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Description
System Info
MacOS Ventura, zshell
pyenv virtualenv 3.11 langchain, clean environment
pyenv local langchain, automatically activate environment
curl -sSL https://install.python-poetry.org | python -, install poetry
export PATH="/Users/steven/.local/bin:$PATH, added this to allow for poetry to be accessible
pip install --upgrade pip
pip install torch
poetry install -E all
yields the following output. Strange.
• Installing torch (1.13.1): Failed
RuntimeError
Unable to find installation candidates for torch (1.13.1)
at ~/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/poetry/installation/chooser.py:76 in choose_for
72│
73│ links.append(link)
74│
75│ if not links:
→ 76│ raise RuntimeError(f"Unable to find installation candidates for {package}")
77│
78│ # Get the best link
79│ chosen = max(links, key=lambda link: self._sort_key(package, link))
80│
Who can help?
@hwchase17 This is install related and while I have langchain running fine from pip in another virtual environment running the same python version (3.11.3), things with poetry are not working well.
Information
- The official example notebooks/scripts
- My own modified scripts
Related Components
- LLMs/Chat Models
- Embedding Models
- Prompts / Prompt Templates / Prompt Selectors
- Output Parsers
- Document Loaders
- Vector Stores / Retrievers
- Memory
- Agents / Agent Executors
- Tools / Toolkits
- Chains
- Callbacks/Tracing
- Async
Reproduction
MacOS Ventura, zshell
pyenv virtualenv 3.11 langchain, clean environment
pyenv local langchain, automatically activate environment
curl -sSL https://install.python-poetry.org | python -, install poetry
export PATH="/Users/steven/.local/bin:$PATH, added this to allow for poetry to be accessible
pip install --upgrade pip
pip install torch
poetry install -E all
Expected behavior
• Installing torch (1.13.1): Failed
RuntimeError
Unable to find installation candidates for torch (1.13.1)
at ~/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/poetry/installation/chooser.py:76 in choose_for
72│
73│ links.append(link)
74│
75│ if not links:
→ 76│ raise RuntimeError(f"Unable to find installation candidates for {package}")
77│
78│ # Get the best link
79│ chosen = max(links, key=lambda link: self._sort_key(package, link))
80│