tensorflow: Target 'build_pip_package' no longer existing?
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
git > 2.16.1
Custom code
No
OS platform and distribution
ArchLinux
Mobile device
No response
Python version
3.10
Bazel version
7.0.2 (also tried 5.3.2)
GCC/compiler version
13.2.1
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
build_pip_package ERROR: no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by ./tensorflow/src/tensorflow/tensorflow/tools/pip_package/BUILD (did you mean 'build_pip_package.py'? Tip: use query “//tensorflow/tools/pip_package:*” to see all the targets in that package)
Standalone code to reproduce the issue
I’ve tried to compile current git of TensorFlow (near to 2.16.1) with the same PKGBUILD from ArchLinux which is still at 2.15.0 : https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/blob/main/PKGBUILD?ref_type=heads
[..]
./configure
bazel \
build ${BAZEL_ARGS[@]} \
//tensorflow:libtensorflow.so \
//tensorflow:libtensorflow_cc.so \
//tensorflow:install_headers \
//tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package "${srcdir}"/tmp
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Comments: 18 (2 by maintainers)
If you are building the nightly CPU wheel from master HEAD, please run:
bazel build --repo_env=TF_PYTHON_VERSION=3.11 //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tf_nightlyI have updated instructions but it takes time for them to propagate. I will post here once https://www.tensorflow.org/install/source is updated.
@waarmond Kindly double-check the target name you’re using. The error message suggests “build_pip_package.py” might exist. Could you ensure you’re using the correct target name with a colon ("😊 separating the package and the target:
//tensorflow/tools/pip_package:build_pip_package.Please follow the official TensorFlow installation guide for building from source: https://www.tensorflow.org/install/source. Thank you!@sumanth1989 You should always use the version from https://github.com/tensorflow/tensorflow/blob/master/.bazelversion