Skip to content

Failed building wheel for lap #84

@ammarameenn

Description

@ammarameenn

For context I am using wsl2 ubuntu and getting this error not sure, how to resolve:

Building wheels for collected packages: lap
Building wheel for lap (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
/tmp/pip-install-m0lubiwt/lap_ac00d3f9c15d4f53b7f16005cc60264f/setup.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import parse_version
Partial import of lap during the build process.
/tmp/pip-install-m0lubiwt/lap_ac00d3f9c15d4f53b7f16005cc60264f/setup.py:223: 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


    from numpy.distutils.core import setup
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-m0lubiwt/lap_ac00d3f9c15d4f53b7f16005cc60264f/setup.py", line 236, in <module>
      setup_package()
    File "/tmp/pip-install-m0lubiwt/lap_ac00d3f9c15d4f53b7f16005cc60264f/setup.py", line 223, in setup_package
      from numpy.distutils.core import setup
    File "/home/ammaricano/miniconda3/envs/DLTA-AI/lib/python3.8/site-packages/numpy/distutils/core.py", line 24, in <module>
      from numpy.distutils.command import config, config_compiler, \
    File "/home/ammaricano/miniconda3/envs/DLTA-AI/lib/python3.8/site-packages/numpy/distutils/command/config.py", line 19, in <module>
      from numpy.distutils.mingw32ccompiler import generate_manifest
    File "/home/ammaricano/miniconda3/envs/DLTA-AI/lib/python3.8/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: Failed building wheel for lap
Running setup.py clean for lap
Failed to build lap
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lap)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions