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

Unable to find installation candidates for torch (1.13.1) #2991

Closed
joybro opened this issue Apr 16, 2023 · 6 comments
Closed

Unable to find installation candidates for torch (1.13.1) #2991

joybro opened this issue Apr 16, 2023 · 6 comments

Comments

@joybro
Copy link
Contributor

joybro commented Apr 16, 2023

Hello all,

I've been encountering an issue while trying to install the dependencies using poetry install -E all command. I am currently working on the latest commit (a9310a3) in my development environment. Here is the error message I receive:

  RuntimeError

  Unable to find installation candidates for torch (1.13.1)

  at /opt/homebrew/Cellar/poetry/1.4.2/libexec/lib/python3.11/site-packages/poetry/installation/chooser.py:109 in choose_for
      105│
      106│             links.append(link)
      107│
      108│         if not links:
    → 109│             raise RuntimeError(f"Unable to find installation candidates for {package}")
      110│
      111│         # Get the best link
      112│         chosen = max(links, key=lambda link: self._sort_key(package, link))
      113│

Has anyone else experienced this issue, and if so, have you found any solutions or workarounds? Any help or suggestions would be greatly appreciated.

Thank you!

@joybro
Copy link
Contributor Author

joybro commented Apr 18, 2023

still have this issue. my setup is..

Python 3.11.3
pip 23.1
Poetry 1.4.2

on Mac mini M2, Ventura 13.3

@joybro
Copy link
Contributor Author

joybro commented Apr 19, 2023

I've downgraded Python to 3.9.16 and reinstalled Poetry. Then the problem is gone. All dependent packages including torch 1.13.1 has been successfully installed.

@joybro joybro closed this as completed Apr 19, 2023
@gruckion
Copy link

I've downgraded Python to 3.9.16 and reinstalled Poetry. Then the problem is gone. All dependent packages including torch 1.13.1 has been successfully installed.

Tried this didn't work. Did you do something else?

  1. Change python version 3.9.16
  2. Reinstall Poetry
  3. Delete langchain re clone.

Now it works

@aakkas
Copy link

aakkas commented May 8, 2023

In my case I ran
poetry env use python3.9

then re running

poetry install -E all

worked fine.

@bkitano
Copy link

bkitano commented Jun 5, 2023

I can confirm downgrading to python3.9 also worked.

@deicide696
Copy link

deicide696 commented Jan 5, 2024

In my case I ran poetry env use python3.9

then re running

poetry install -E all

worked fine.

poetry install -E al don't works, but only I needed downgrade python to 3.9

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

No branches or pull requests

5 participants