Using pip install tflite-support
, this is the full output and error message:
Collecting tflite-support
Using cached tflite-support-0.1.0a1.tar.gz (390 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pybind11>=2.4 in c:usersluisdappdatalocalprogramspythonpython312libsite-packages (from tflite-support) (2.13.5)
Requirement already satisfied: absl-py>=0.7.0 in c:usersluisdappdatalocalprogramspythonpython312libsite-packages (from tflite-support) (2.1.0)
Requirement already satisfied: numpy in c:usersluisdappdatalocalprogramspythonpython312libsite-packages (from tflite-support) (1.26.4)
Building wheels for collected packages: tflite-support
Building wheel for tflite-support (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [95 lines of output]
C:UsersluisdAppDataLocalProgramsPythonPython312Libsite-packagessetuptools__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-cpython-312
creating buildlib.win-amd64-cpython-312tflite_support
copying tflite_supportcodegen.py -> buildlib.win-amd64-cpython-312tflite_support
copying tflite_supportmetadata.py -> buildlib.win-amd64-cpython-312tflite_support
copying tflite_supportmetadata_schema_py_generated.py -> buildlib.win-amd64-cpython-312tflite_support
copying tflite_supportschema_py_generated.py -> buildlib.win-amd64-cpython-312tflite_support
copying tflite_support__init__.py -> buildlib.win-amd64-cpython-312tflite_support
running egg_info
writing tflite_support.egg-infoPKG-INFO
writing dependency_links to tflite_support.egg-infodependency_links.txt
writing entry points to tflite_support.egg-infoentry_points.txt
writing requirements to tflite_support.egg-inforequires.txt
writing top-level names to tflite_support.egg-infotop_level.txt
reading manifest file 'tflite_support.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'tflite_support.egg-infoSOURCES.txt'
C:UsersluisdAppDataLocalProgramsPythonPython312Libsite-packagessetuptoolscommandbuild_py.py:218: _Warning: Package 'tflite_support.flatbuffers' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'tflite_support.flatbuffers' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'tflite_support.flatbuffers' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'tflite_support.flatbuffers' to be distributed and are
already explicitly excluding 'tflite_support.flatbuffers' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
copying tflite_supportmetadata_schema.fbs -> buildlib.win-amd64-cpython-312tflite_support
creating buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbuffers__init__.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbuffersbuilder.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbufferscompat.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbuffersencode.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbuffersnumber_types.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbufferspacker.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbufferstable.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
copying tflite_supportflatbuffersutil.py -> buildlib.win-amd64-cpython-312tflite_supportflatbuffers
running build_ext
building '_pywrap_codegen' extension
creating buildtemp.win-amd64-cpython-312
creating buildtemp.win-amd64-cpython-312Release
creating buildtemp.win-amd64-cpython-312Releasesrc
creating buildtemp.win-amd64-cpython-312Releasesrctensorflow
creating buildtemp.win-amd64-cpython-312Releasesrctensorflowlite
creating buildtemp.win-amd64-cpython-312Releasesrctensorflowliteexperimental
creating buildtemp.win-amd64-cpython-312Releasesrctensorflowliteexperimentalsupport
creating buildtemp.win-amd64-cpython-312Releasesrctensorflowliteexperimentalsupportcodegen
"C:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.41.34120binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:UsersluisdAppDataLocalProgramsPythonPython312Libsite-packagespybind11include -IC:UsersluisdAppDataLocalProgramsPythonPython312Libsite-packagespybind11include -Iinclude -Isrc -IC:UsersluisdAppDataLocalProgramsPythonPython312include -IC:UsersluisdAppDataLocalProgramsPythonPython312Include "-IC:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.41.34120include" "-IC:Program FilesMicrosoft Visual Studio2022CommunityVCAuxiliaryVSinclude" /EHsc /Tpsrctensorflowliteexperimentalsupportcodegenandroid_java_generator.cc /Fobuildtemp.win-amd64-cpython-312Releasesrctensorflowliteexperimentalsupportcodegenandroid_java_generator.obj /EHsc /DVERSION_INFO=\"0.1.0a1\"
android_java_generator.cc
C:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.41.34120includeyvals.h(20): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tflite-support
Running setup.py clean for tflite-support
Failed to build tflite-support
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tflite-support)
I tried pip install tflite-support --use-pep517
, but it also doesn’t work.
Can someone help me?
2