

Would you like to interactively configure. Please specify optimization flags to use during compilation when bazel option "-config=opt" is specified : Please specify the path to clang executable. No CUDA support will be enabled for TensorFlow.ĭo you want to use Clang to build TensorFlow? :Ĭlang will be used to compile TensorFlow. No ROCm support will be enabled for TensorFlow.ĭo you wish to build TensorFlow with CUDA support? : Default is ĭo you wish to build TensorFlow with ROCm support? : Please input the desired Python library path to use. Library/Frameworks/amework/Versions/3.9/lib/python3.9/site-packages Session may differ): View sample configuration session In both cases you can change the default. Virtual environment, python configure.py prioritizes paths There is also a python version of this script. Script will prompt you for the location of TensorFlow dependencies and asks forĪdditional build configuration options (compiler flags, for example). configure script from the repository's root directory. Git checkout branch_name # r2.2, r2.3, etc. The repo defaults to the master development branch. TensorFlow repository: git clone cd tensorflow Note: It is easier to set up one of TensorFlow's GPU-enabled Docker images. Software required to run TensorFlow on a GPU. Read the GPU support guide to install the drivers and additional Install GPU support (optional, Linux only)

Package sources: sudo apt-get update & sudo apt-get install -y llvm-16 clang-16Īlternatively, you can download and unpack the pre-builtĬlang+LLVM-16 binaries. Run the following command if you manually add llvm apt repository to your Installation script and packages for manual installation on Linux. LLVM Debian/Ubuntu nightly packages provide an automatic TheĬurrent supported version is LLVM/Clang 16. Is the default compiler to build TensorFlow starting with TensorFlow 2.13. Install Clang (recommended, Linux only)Ĭlang is a C/C++/Objective-C compiler that is compiled in C++ based on LLVM. Sure to install the correct Bazel version from TensorFlow'sįile. If Bazelisk is not available, you can manually ForĮase of use, add Bazelisk as the bazel executable in your PATH. To build TensorFlow, you will need to install Bazel.īazel and automatically downloads the correct Bazel version for TensorFlow. Additional required dependencies are listed in theįile under REQUIRED_PACKAGES. Install the TensorFlow pip package dependencies (if using a virtualĮnvironment, omit the -user argument): pip install -U -user pip numpy wheel packaging requests opt_einsum pip install -U -user keras_preprocessing -no-deps Note: A pip version >19.0 is required to install the TensorFlow 2. Install using the Homebrew package manager: brew install python Ubuntu sudo apt install python3-dev python3-pip macOS
