MinkowskiEngine icon indicating copy to clipboard operation
MinkowskiEngine copied to clipboard

Problem when instaling with pip

Open tammy3107 opened this issue 1 year ago • 8 comments

when I try to run the command :

pip3 install -U MinkowskiEngine

I get this error:-

Defaulting to user installation because normal site-packages is not writeable Collecting MinkowskiEngine Using cached MinkowskiEngine-0.5.4.tar.gz (246 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [30 lines of output] WARNING: Skipping MinkowskiEngine as it is not installed. /tmp/pip-install-xanp8c26/minkowskiengine_2d159e464abb4b1b807b1d21d63a14fd/setup.py:195: DeprecationWarning:

    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html
  
  
    import numpy.distutils.system_info as sysinfo
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-xanp8c26/minkowskiengine_2d159e464abb4b1b807b1d21d63a14fd/setup.py", line 305, in <module>
      Extension(
    File "/home/[email protected]/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1077, in CUDAExtension
      library_dirs += library_paths(cuda=True)
    File "/home/[email protected]/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1204, in library_paths
      if (not os.path.exists(_join_cuda_home(lib_dir)) and
    File "/home/[email protected]/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2419, in _join_cuda_home
      raise OSError('CUDA_HOME environment variable is not set. '
  OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
  --------------------------------
  | CUDA compilation set         |
  --------------------------------
  
  Using BLAS=openblas
  Using the default compiler
  [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.

tammy3107 avatar Jun 14 '24 11:06 tammy3107

+1

flyyuan avatar Jun 16 '24 07:06 flyyuan

Try to install cuda in conda (choose the right cuda version).

conda install cuda -c nvidia/label/cuda-11.3.0

nvcc --version # validate

see: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#conda-installation

BuckyI avatar Jun 18 '24 03:06 BuckyI

Same error as me. Does anyone find how to solve these errors?

OhEunje avatar Jan 01 '25 02:01 OhEunje

same error.... anyone can help?

Xin200203 avatar Jan 15 '25 13:01 Xin200203

Me too

guanshantingbai avatar Jan 18 '25 16:01 guanshantingbai

same here

ragyabraham avatar Mar 15 '25 07:03 ragyabraham

any updates?

username-not-known avatar Mar 29 '25 20:03 username-not-known

If installing on conda, follow this process -

``pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117`

conda install -c "nvidia/label/cuda-11.7.0" cudatoolkit-dev

conda install anaconda::openblas-devel

export CUDA_HOME=$CONDA_PREFIX export PATH=$CUDA_HOME/bin:$PATH export CPATH=$CUDA_HOME/include export LIBRARY_PATH=$CUDA_HOME/lib:$LIBRARY_PATH export LD_LIBRARY_PATH=$CUDA_HOME/lib:$LD_LIBRARY_PATH`

chaitanya1chawla avatar Apr 14 '25 19:04 chaitanya1chawla