JasonGross / guarantees-based-mechanistic-interpretability

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`poetry install` cannot find torch on Mac?

JasonGross opened this issue · comments

I'm seeing

• Installing torch (2.1.2)

  RuntimeError

  Unable to find installation candidates for torch (2.1.2)

  at /usr/local/Cellar/pipx/1.4.1/venvs/poetry/lib/python3.12/site-packages/poetry/installation/chooser.py:73 in choose_for
       69│ 
       70│             links.append(link)
       71│ 
       72│         if not links:
    →  73│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       74│ 
       75│         # Get the best link
       76│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       77│ 

Cannot install torch.

But here installing torch 2.1.2 on python 3.11 on macos worked fine. So I don't know what's going on.