Description
Prerequisites
- I am using the latest TensorFlow Model Garden release and TensorFlow 2.
- I am reporting the issue to the correct repository. (Model Garden official directory)
- I checked to make sure that this issue has not been filed already.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/tree/master/official/...
2. Describe the bug
I’m trying to install the tf-models-official
package in order to run test files and experiments from the TensorFlow Model Garden on my local system. However, the installation consistently fails due to a subprocess-exited-with-error
, specifically caused by an AttributeError: cython_sources
.
It appears to happen during the wheel-building process when running pip install tf-models-official
. The setup fails when trying to get requirements for building the wheel, and throws warnings related to deprecated license classifiers and then crashes due to the cython_sources
error.
This has been a blocker for me trying to use the repo.
3. Steps to reproduce
-
Create a virtual environment:
python -m venv tf-env
-
Activate it and upgrade pip:
pip install --upgrade pip setuptools wheel
-
Try to install the official package:
pip install tf-models-official
-
Observe the crash with the
cython_sources
error during build.
4. Expected behavior
Expected the package to install successfully so I can import and use modules from official.vision
, run test files, and explore models. Instead, the build fails due to what seems like a packaging issue.
5. Additional context
Full error log includes:
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> AttributeError: cython_sources ... Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License ...
I have tried:
- Upgrading pip, setuptools, and wheel
- Installing directly from GitHub
- Installing with
--no-build-isolation
- Installing dependencies from
official/requirements.txt
Still encountering the same issue every time.
6. System information
- OS Platform and Distribution: Windows 11
- TensorFlow installed from: Binary (pip)
- TensorFlow version: 2.15.0
- Python version: 3.11
- Bazel version: N/A
- GCC/Compiler version: N/A
- CUDA/cuDNN version: Not using GPU
- GPU model and memory: Integrated (no dedicated GPU)