NVIDIA / MinkowskiEngine

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

No module named 'distutils.msvccompiler' #605

Open Rickilous opened 1 month ago

Rickilous commented 1 month ago

Describe the bug

(GGSD) xzy@xzy-HP-Z4-G4-Workstation:/data1/jy/code/MinkowskiEngine$ python setup.py install --install-option="--force_cuda" --install-option="--blas=openblas" WARNING: Skipping MinkowskiEngine as it is not installed.

| CUDA compilation set |

Traceback (most recent call last): File "setup.py", line 201, in import numpy.distutils.system_info as sysinfo File "/home/xzy/anaconda3/envs/GGSD/lib/python3.8/site-packages/numpy/distutils/system_info.py", line 196, in from numpy.distutils.command.config import config as cmd_config File "/home/xzy/anaconda3/envs/GGSD/lib/python3.8/site-packages/numpy/distutils/command/config.py", line 19, in from numpy.distutils.mingw32ccompiler import generate_manifest File "/home/xzy/anaconda3/envs/GGSD/lib/python3.8/site-packages/numpy/distutils/mingw32ccompiler.py", line 28, in from distutils.msvccompiler import get_build_version as get_build_msvc_version ModuleNotFoundError: No module named 'distutils.msvccompiler'


To Reproduce

Whether I install Minkowski Engine through pip or locally, the above bugs will occur.


Desktop (please complete the following information):


Additional context My attempt: I tried to use Setup tools to bypass the issue of missing distutls, but it seems that there is still a problem. (GGSD) xzy@xzy-HP-Z4-G4-Workstation :/data1/jy/code/MinkowskiEngine$ python -c "import distutils; print(distutils. file)" /home/xzy/anaconda3/envs/GGSD/lib/python3.8/site-packages/setuptools/_distutils/init.py (GGSD) xzy@xzy-HP-Z4-G4-Workstation :/data1/jy/code/MinkowskiEngine$ pip list| grep setuptools setuptools 75.1.0 WARNING: There was an error checking the latest version of pip. (GGSD) xzy@xzy-HP-Z4-G4-Workstation :/data1/jy/code/MinkowskiEngine$ pip list| grep distutils WARNING: There was an error checking the latest version of pip.

Yangl1nFeng commented 1 month ago

Have you resolved it? I encountered the same issue!

Rickilous commented 1 month ago

Have you resolved it? I encountered the same issue!

No, still working on it.

Rickilous commented 1 month ago

Have you resolved it? I encountered the same issue!

Hey, hello. You can try using Docker to install or downgrade the Python version to 3.7. Both methods are effective for me. (* ̄︶ ̄)

Yangl1nFeng commented 1 month ago

你解决了吗?我也遇到了同样的问题!

嗨,你好。你可以尝试使用 Docker 安装或降级 Python 版本到 3.7。这两种方法对我来说都很有效。(* ̄︶ ̄)

Thanks, I'll try it!

destroy314 commented 3 weeks ago

See https://github.com/numpy/numpy/issues/27405