Skip to content

Installation Issues: ModuleNotFoundError: No module named 'distutils.msvccompiler' #178

@Yangyizehui

Description

@Yangyizehui

Thank you for developing this wonderful tool! But I encountered some problems during installation.
When I tried to install on python=3.9 version, I got the following problem which you answered in your previous question:
AttributeError: module 'bento' has no attribute 'io'.
Then I followed your solution:

pip uninstall bento-tools
git clone https://github.com/YeoLab/bento-tools.git
cd bento-tools
pip install -e .

Here comes a new problem:
ERROR: Package 'bento-tools' requires a different Python: 3.9.21 not in >=3.10
Then I reinstalled on python=3.10 version, The following problem occurred:

from distutils.msvccompiler import get_build_version as get_build_msvc_version
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [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.

However, distutils is deprecated in Python 3.10. Does anyone know what might be going wrong here?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdependenciesPull requests that update a dependency file

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions