I successfully installed cpu only tensorflow on ubuntu 16.04 using the default instructions provided here. The instructions recommended using virtualenv and pip so I did not build from source. I had no problems installing with these instructions.
I validated my installation using the instructions provided further down on the same page, and while the program ran successfully, it output the following warnings.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
Hello, TensorFlow!
all the stackoverflow pages i've looked at only address people who have built from source using bazel, but don't seem to apply to people who used pip.
How do I recompile or update my installation so as to the SSE instructions?
Install the TensorFlow pip package Missed ML Community Day? Watch all the sessions on demand View sessions Was this helpful? 1. Install the Python development environment on your system 2. Create a virtual environment (recommended) 3. Install the TensorFlow pip package tf-nightly —Preview build (unstable). Ubuntu and Windows include GPU support.
Hardware requirements 1 Install the Python development environment on your system#N#Check if your Python environment is already... 2 Create a virtual environment (recommended)#N#Python virtual environments are used to isolate package installation from... 3 Install the TensorFlow pip package More ...
TensorFlow is tested and supported on the following 64-bit systems: Install TensorFlow with Python's pip package manager. TensorFlow 2 packages require a pip version >19.0 (or >20.3 for macOS). Official packages available for Ubuntu, Windows, and macOS. See the GPU guide for CUDA®-enabled cards.
PIP 19.0 or above version installation. Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. Once Python, PIP installation is completed then verify versions using below commands: Step 1: Install the Pip virtual environment in the Command prompt. Step 2: Here we are creating the directory for Python virtual environment.
bazel build --linkopt='-lrt' -c opt --copt=-mavx --copt=-msse4.2 --copt=-msse4.1 --copt=-msse3-k //tensorflow/tools/pip_package:build_pip_package
If above solved your problem ,vote up Christian Frei's
answer on How do I resolve these tensorflow warnings?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With