Skip to content

No module named 'distutils.msvccompiler' #5

@cdub3575

Description

@cdub3575

Hello,

I've been trying to install the packages in a clean python 3.8 conda env (with pip install . within my Cell_Atlas_MxIF directory). But I have the following error when I do so:


Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      <string>:5: 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


      Traceback (most recent call last):
        File "C:\Users\c\.conda\envs\Tesselationenv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\c\.conda\envs\Tesselationenv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\c\.conda\envs\Tesselationenv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\c\AppData\Local\Temp\pip-build-env-ez8h83aa\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\c\AppData\Local\Temp\pip-build-env-ez8h83aa\overlay\Lib\site-packages\setuptools\build_meta.py", line 303, in _get_build_requires
          self.run_setup()
        File "C:\Users\c\AppData\Local\Temp\pip-build-env-ez8h83aa\overlay\Lib\site-packages\setuptools\build_meta.py", line 319, in run_setup
          exec(code, locals())
        File "<string>", line 5, in <module>
        File "C:\Users\c\AppData\Local\Temp\pip-build-env-ez8h83aa\overlay\Lib\site-packages\numpy\distutils\core.py", line 24, in <module>
          from numpy.distutils.command import config, config_compiler, \
        File "C:\Users\c\AppData\Local\Temp\pip-build-env-ez8h83aa\overlay\Lib\site-packages\numpy\distutils\command\config.py", line 19, in <module>
          from numpy.distutils.mingw32ccompiler import generate_manifest
        File "C:\Users\c\AppData\Local\Temp\pip-build-env-ez8h83aa\overlay\Lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 28, in <module>
          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: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.


note: This error originates from a subprocess, and is likely not a problem with pip._

Could you please help me to solve it ?

Thank you very much in advance,
Bests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions