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

Problem when instaling with pip #597

Open
tammy3107 opened this issue Jun 14, 2024 · 2 comments
Open

Problem when instaling with pip #597

tammy3107 opened this issue Jun 14, 2024 · 2 comments

Comments

@tammy3107
Copy link

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.

@flyyuan
Copy link

flyyuan commented Jun 16, 2024

+1

@BuckyI
Copy link

BuckyI commented Jun 18, 2024

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

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

3 participants