micropy-cli icon indicating copy to clipboard operation
micropy-cli copied to clipboard

Unable to install netifaces

Open riteman opened this issue 7 months ago • 1 comments

Hi

I have struggled a while to install netifaces when setting up micropy-cli and Google must be sick and tired of my searching for a solution :-):

I keep getting the same error message although I have uninstalled all C++ tools and then installed the latest version: I have added a screenshot showing my currently installed version of C++

==========================

Building wheel for netifaces (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [5 lines of output] running bdist_wheel running build running build_ext building 'netifaces' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for netifaces Running setup.py clean for netifaces Failed to build netifaces Installing collected packages: netifaces, dpath, distlib, boltons, bleak-winrt, win32-setctime, typing-extensions, typed-config, tomli-w, tenacity, tabulate, smmap, shellingham, requests, pyudev, python-minifier, pysondb-v2, pygments, pyflakes, portalocker, nodeenv, mypy-extensions, mdurl, MarkupSafe, importlib-metadata, deprecated, colorama, cachetools, attrs, async-timeout, argcomplete, typing-inspect, tqdm, rshell, questionary, pyright, pydantic, mypy, markdown-it-py, mailbits, loguru, jsonschema, Jinja2, gitdb, click, cachier, bleak, autoflake, userpath, typer, rich, pypi-simple, libcst, GitPython, bleak-sigspec, black, upydevice, pygithub, pipx, micropython-stubber, micropy-cli Running setup.py install for netifaces ... error error: subprocess-exited-with-error

× Running setup.py install for netifaces did not run successfully. │ exit code: 1 ╰─> [5 lines of output] running install running build running build_ext building 'netifaces' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> netifaces Screenshot

riteman avatar Nov 27 '23 20:11 riteman