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

No module named 'distutils.msvccompiler' #605

Open
Rickilous opened this issue Oct 4, 2024 · 5 comments
Open

No module named 'distutils.msvccompiler' #605

Rickilous opened this issue Oct 4, 2024 · 5 comments

Comments

@Rickilous
Copy link

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):

  • OS: [Ubuntu 22.04.2 LTS]
  • Python version: [Python 3.8.19]
  • Pytorch version: [2.0.1]
  • CUDA version: [11.7]
  • NVIDIA Driver version: [550.107.02]
  • Minkowski Engine version :[Installation failed]

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
Copy link

Have you resolved it? I encountered the same issue!

@Rickilous
Copy link
Author

Have you resolved it? I encountered the same issue!

No, still working on it.

@Rickilous
Copy link
Author

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
Copy link

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

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

Thanks, I'll try it!

@destroy314
Copy link

See numpy/numpy#27405

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