NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.43k stars 360 forks source link

pip install error,what shoud i do #466

Open ChetWei opened 2 years ago

ChetWei commented 2 years ago

when i use the command "pip install -U git+https://github.com/NVIDIA/MinkowskiEngine -v --no-deps --install-option="--blas_include_dirs=${CONDA_PREFIX}/include" --install-option="--blas=openblas"" to install .

get the erro info :

…… /tmp/pip-req-build-1qv97zz6/src/coordinate_map_manager.hpp: In member function ??minkowski::kernel_map_key_type minkowski::CoordinateMapManager<coordinate_type, coordinate_field_type, TemplatedAllocator, CoordinateMapType>::origin_map_key(const coordinate_map_key_type&) const??: /tmp/pip-req-build-1qv97zz6/src/coordinate_map_manager.hpp:512:56: error: use of auto in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 512 | std::for_each(zero_vec.begin(), zero_vec.end(), [](auto &i) { i = 0; }); | ^~~~ error: command '/usr/bin/gcc' failed with exit code 1 Running setup.py install for MinkowskiEngine ... error ERROR: Command errored out with exit status 1: /home/ubuntu/.conda/envs/py3-mink/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-1qv97zz6/setup.py'"'"'; file='"'"'/tmp/pip-req-build-1qv97zz6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-x7mshko3/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/.conda/envs/py3-mink/include/python3.8/MinkowskiEngine --blas_include_dirs=/home/ubuntu/.conda/envs/py3-mink/include --blas=openblas Check the logs for full command output.

here is my computer gcc info: $ /usr/bin/gcc --version

gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

Bonnie-gift commented 2 years ago

have you solved that

enrico-stauss commented 2 years ago

I don't know if this is related but I cannot install MinkowskiEngine in Colab.

os.environ["CUDA_HOME"] = "/usr/local/cuda-11.1"
!apt install build-essential python3-dev libopenblas-dev
!pip install ninja
!pip install -U git+https://github.com/NVIDIA/MinkowskiEngine -v --no-deps --install-option="--force_cuda" --install-option="--blas=openblas"

The script collect_env.py that comes with torch yields the following system information:

Collecting environment information...
PyTorch version: 1.11.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
CMake version: version 3.22.4
Libc version: glibc-2.26

Python version: 3.7.13 (default, Apr 24 2022, 01:04:09)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
Is CUDA available: True
CUDA runtime version: 11.1.105
GPU models and configuration: GPU 0: Tesla T4
Nvidia driver version: 460.32.03
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.5
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.21.6
[pip3] torch==1.11.0+cu113
[pip3] torchaudio==0.11.0+cu113
[pip3] torchsummary==1.5.1
[pip3] torchtext==0.12.0
[pip3] torchvision==0.12.0+cu113
[conda] Could not collect

Attached to this answer, you find the log for the pip install.

Thanks and kind regards!

MinkowskiEngineInstall.log

vardeep-sandhu commented 2 years ago

when i use the command "pip install -U git+https://github.com/NVIDIA/MinkowskiEngine -v --no-deps --install-option="--blas_include_dirs=${CONDA_PREFIX}/include" --install-option="--blas=openblas"" to install .

get the erro info :

……

/tmp/pip-req-build-1qv97zz6/src/coordinate_map_manager.hpp: In member function ??minkowski::kernel_map_key_type minkowski::CoordinateMapManager<coordinate_type, coordinate_field_type, TemplatedAllocator, CoordinateMapType>::origin_map_key(const coordinate_map_key_type&) const??: /tmp/pip-req-build-1qv97zz6/src/coordinate_map_manager.hpp:512:56: error: use of auto in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 512 | std::for_each(zero_vec.begin(), zero_vec.end(), [](auto &i) { i = 0; }); | ^~~~ error: command '/usr/bin/gcc' failed with exit code 1 Running setup.py install for MinkowskiEngine ... error ERROR: Command errored out with exit status 1: /home/ubuntu/.conda/envs/py3-mink/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-1qv97zz6/setup.py'"'"'; file='"'"'/tmp/pip-req-build-1qv97zz6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-x7mshko3/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/.conda/envs/py3-mink/include/python3.8/MinkowskiEngine --blas_include_dirs=/home/ubuntu/.conda/envs/py3-mink/include --blas=openblas Check the logs for full command output. here is my computer gcc info: $ /usr/bin/gcc --version

gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

I have the exact same error. Did you manage to solve it?