rapidsai / cucim

cuCIM - RAPIDS GPU-accelerated image processing library
https://docs.rapids.ai/api/cucim/stable/
Apache License 2.0
359 stars 61 forks source link

Pip install failure on Linux #779

Closed Elliot-QxZhang closed 2 months ago

Elliot-QxZhang commented 2 months ago

Hi!

I just found that I cannot use Pip or conda to install cucim. My CUDA version is 11.8. I use the script pip install cucim-cu11, but I received

Collecting cucim-cu11 Downloading cucim-cu11-23.12.1.tar.gz (6.8 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-kjyijayy/cucim-cu11_3faaf0ae7c944533982a22ed9b5060db/setup.py", line 137, in raise RuntimeError(open("ERROR.txt", "r").read()) RuntimeError: ########################################################################################### The package you are trying to install is only a placeholder project on PyPI.org repository. This package is hosted on NVIDIA Python Package Index.

  This package can be installed as:
  ```
  $ pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com cucim-cu11
  ```
  ###########################################################################################

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

I have tried to use pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com cucim-cu11, but I still receive the same results. I have also try to update my pip module and setuptools, but it didn't work.

Thanks

gigony commented 2 months ago

Hi @Elliot-QxZhang ,

Could you please let us know which OS and Python version you are using?

The current cucim-cu11 Python package supports Python 3.9/3.10/3.11 (no support for Python 3.8 or 3.12), and I suspect the current registry may not support your system.

Please check if you can install the older version of cucim (https://pypi.org/project/cucim/#files) that supports Python 3.8.

python3 -m pip install cucim

Also please try to upgrade pip and setuptools version

python3 -m pip install --upgrade setuptools pip

The following are the commands I tested locally with Docker, and they worked on my side.

docker run -it --rm nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04

# Inside docker container
apt-get update
apt-get install python3 python3-pip
pip install cucim-cu11

Thanks!

Elliot-QxZhang commented 2 months ago

Thank you for your reply. I have succeeded in installing it. It was the wrong Python version. Thanks anyway.