Discussion about this post

User's avatar
Wystan's avatar

Hi, how do I solve this problem when I execute pip install -e .? Would appreciate if you could help. Thanks.

*** hailort-4.23.0-cp310-cp310-linux_x86_64

*** hailort_4.23.0_amd64.deb.whl

*** hailo_dataflow_compiler-3.33.0-py3-none-linux_x86_64.whl

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-heqjmm_y/lap_be51c4cf0a984d8990d58f96398d7a20/setup.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

from pkg_resources import parse_version

Partial import of lap during the build process.

/tmp/pip-install-heqjmm_y/lap_be51c4cf0a984d8990d58f96398d7a20/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 35, in <module>

File "/tmp/pip-install-heqjmm_y/lap_be51c4cf0a984d8990d58f96398d7a20/setup.py", line 236, in <module>

setup_package()

File "/tmp/pip-install-heqjmm_y/lap_be51c4cf0a984d8990d58f96398d7a20/setup.py", line 223, in setup_package

from numpy.distutils.core import setup

File "/usr/local/lib/python3.10/dist-packages/numpy/distutils/core.py", line 24, in <module>

from numpy.distutils.command import config, config_compiler, \

File "/usr/local/lib/python3.10/dist-packages/numpy/distutils/command/config.py", line 19, in <module>

from numpy.distutils.mingw32ccompiler import generate_manifest

File "/usr/local/lib/python3.10/dist-packages/numpy/distutils/mingw32ccompiler.py", line 27, 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: failed-wheel-build-for-install

Expand full comment

No posts