Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find torch candidate while building environment #26

Open
20Mhz opened this issue Dec 14, 2024 · 3 comments
Open

Can't find torch candidate while building environment #26

20Mhz opened this issue Dec 14, 2024 · 3 comments

Comments

@20Mhz
Copy link

20Mhz commented Dec 14, 2024

Failing due to missing dependency

ronaldv@MBP-de-Ronald LLM-Engineers-Handbook % poetry env use 3.11
Using virtualenv: /Users/ronaldv/Library/Caches/pypoetry/virtualenvs/llm-engineering-QmmB4sbR-py3.11
ronaldv@MBP-de-Ronald LLM-Engineers-Handbook % poetry install --without aws
Installing dependencies from lock file

Package operations: 18 installs, 0 updates, 0 removals

  - Installing torch (2.4.0): Failed

  RuntimeError

  Unable to find installation candidates for torch (2.4.0)

  at ~/Library/Application Support/pypoetry/venv/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.
@20Mhz
Copy link
Author

20Mhz commented Dec 15, 2024

This seems to be related to PyTorch dropping support for Intel Macs, still looking for a work around

@ryan-mcdonough
Copy link

ryan-mcdonough commented Dec 17, 2024

This also happens on my M1 Macbook Pro.

I found changing the .lock file Torch version from 2.4.0 to 2.2.2 allows the install to complete, though not yet sure if this will cause further issues down the line.

@robot010
Copy link

same here for mac intel core i7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants