NVIDIA / cuda-python

CUDA Python Low-level Bindings
https://nvidia.github.io/cuda-python/
Other
809 stars 63 forks source link

poetry unable to find package #54

Closed mmoya91 closed 3 weeks ago

mmoya91 commented 8 months ago

Hello, I'm running into the following issues anytime I try installing cuda-python via poetry. I also tried considering

cuda-python = {url = "https://files.pythonhosted.org/packages/bb/3f/0c38c8716a3a15d71c94696fd43290ed4d4f0361d36409f68ffb15478593/cuda_python-12.3.0-cp311-cp311-win_amd64.whl"}

but no luck. I would greatly appreciate any advice around this

Package operations: 1 install, 3 updates, 0 removals

  • Updating urllib3 (1.26.18 -> 2.0.7)
  • Updating protobuf (3.20.3 -> 4.24.4)
  • Updating types-requests (2.31.0.6 -> 2.31.0.10)
  • Installing cuda-python (12.3.0): Failed

  RuntimeError

  Unable to find installation candidates for cuda-python (12.3.0)

  at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/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))
leofang commented 8 months ago

Are you on macOS? CUDA doesn't support Mac.

scottrbrtsn commented 3 months ago

can confirm poetry add cuda-python works fine.
• Installing cuda-python (12.4.0)

Then from ./cuda/tests/ ran poetry run pytest test_cuda.py and tests pass. test_cuda.py ........................s. [100%]

Most likely is a MacOS problem. /Library is Mac specific.