{"id":12915,"date":"2022-05-24T23:38:56","date_gmt":"2022-05-24T20:38:56","guid":{"rendered":"https:\/\/kifarunix.com\/?p=12915"},"modified":"2024-03-09T12:45:29","modified_gmt":"2024-03-09T09:45:29","slug":"install-tensorflow-on-debian-11","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-tensorflow-on-debian-11\/","title":{"rendered":"Install TensorFlow on Debian 11"},"content":{"rendered":"\n<p>This tutorial will show you how to install TensorFlow on Debian 11. According to their <a href=\"https:\/\/www.tensorflow.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">site<\/a>, <em>TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML powered applications<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install TensorFlow on Debian 11<\/h2>\n\n\n\n<p>There are various ways in which TensorFlow can be installed on Debian Linux;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#install-using-pip\">Install using Python PIP<\/a><\/li>\n\n\n\n<li>Install via Docker<\/li>\n\n\n\n<li>Build and install from the source.<\/li>\n<\/ol>\n\n\n\n<p>We will only discuss the PIP installation method in this guide. For other methods refer to the documentation.<\/p>\n\n\n\n<p>Before you can proceed with installation, be sure to check on <a href=\"https:\/\/www.tensorflow.org\/install\/pip#hardware_requirements\" target=\"_blank\" rel=\"noreferrer noopener\">hardware<\/a>, <a href=\"https:\/\/www.tensorflow.org\/install\/pip#system_requirements\" target=\"_blank\" rel=\"noreferrer noopener\">system<\/a> and <a href=\"https:\/\/www.tensorflow.org\/install\/pip#software_requirements\" target=\"_blank\" rel=\"noreferrer noopener\">software<\/a> requirements.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-using-pip\">Use Python PIP to Install TensorFlow<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install Python 3.x<\/li>\n<\/ul>\n\n\n\n<p>TensorFlow requires Python 3.7-3.10. Fortunately, Debian 11 ships with Python 3.9;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -V<\/code><\/pre>\n\n\n\n<p>Sample output;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Python 3.9.2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install PIP on Debian 11<\/li>\n<\/ul>\n\n\n\n<p>pip version 19.0 or higher is required. You can install PIP on Debian 11 using the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install python3-pip<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install Required Python Libraries and Virtual Environment<\/li>\n<\/ul>\n\n\n\n<p>Run the command below to install required Python libraries and virtual environment.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install python3-{venv,dev}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create TensorFlow Virtual Environment<\/li>\n<\/ul>\n\n\n\n<p>Next, run the command below to install TensorFlow;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir ~\/tensorflow &amp;&amp; cd ~\/tensorflow<\/code><\/pre>\n\n\n\n<p>Create virtual environment, in this case we called our virtual environment, <strong>tensorflow_venv<\/strong>. You can use any name!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -m venv tensorflow_venv<\/code><\/pre>\n\n\n\n<p>Activate the virtual environment created;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source .\/tensorflow_venv\/bin\/activate<\/code><\/pre>\n\n\n\n<p>You will see the shell prompt change;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(tensorflow_venv) kifarunix@debian11:~\/tensorflow$<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Upgrade PIP;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install --upgrade pip<\/code><\/pre>\n\n\n\n<p>Verify installed PIP version;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip --version<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>pip 22.1.1 from \/home\/kifarunix\/tensorflow\/tensorflow_venv\/lib\/python3.9\/site-packages\/pip (python 3.9)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install TensorFlow using PIP<\/li>\n<\/ul>\n\n\n\n<p>Within the virtual environment, run the command below to install TensorFlow using PIP.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install --upgrade tensorflow<\/code><\/pre>\n\n\n\n<p>Sample installation output;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\nRequirement already satisfied: pip in .\/tensorflow_venv\/lib\/python3.9\/site-packages (20.3.4)\nCollecting pip\n  Downloading pip-22.1.1-py3-none-any.whl (2.1 MB)\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 2.1 MB 821 kB\/s \nInstalling collected packages: pip\n  Attempting uninstall: pip\n    Found existing installation: pip 20.3.4\n    Uninstalling pip-20.3.4:\n      Successfully uninstalled pip-20.3.4\nSuccessfully installed pip-22.1.1\n(tensorflow_venv) kifarunix@debian11:~\/tensorflow$ pip3 --version\npip 22.1.1 from \/home\/kifarunix\/tensorflow\/tensorflow_venv\/lib\/python3.9\/site-packages\/pip (python 3.9)\n(tensorflow_venv) kifarunix@debian11:~\/tensorflow$ pip install --upgrade tensorflow\nCollecting tensorflow\n  Downloading tensorflow-2.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (511.7 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 511.7\/511.7 MB ? eta 0:00:00\nWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(\"HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)\")': \/simple\/astunparse\/\nCollecting astunparse>=1.6.0\n  Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)\nCollecting numpy>=1.20\n  Downloading numpy-1.22.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 16.8\/16.8 MB 1.2 MB\/s eta 0:00:00\nCollecting keras<2.10.0,>=2.9.0rc0\n  Downloading keras-2.9.0-py2.py3-none-any.whl (1.6 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 1.6\/1.6 MB 377.4 kB\/s eta 0:00:00\nCollecting absl-py>=1.0.0\n  Downloading absl_py-1.0.0-py3-none-any.whl (126 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 126.7\/126.7 kB 542.4 kB\/s eta 0:00:00\nCollecting gast<=0.4.0,>=0.2.1\n  Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)\nCollecting tensorflow-io-gcs-filesystem>=0.23.1\n  Downloading tensorflow_io_gcs_filesystem-0.26.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.4 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.4\/2.4 MB 1.4 MB\/s eta 0:00:00\nRequirement already satisfied: setuptools in .\/tensorflow_venv\/lib\/python3.9\/site-packages (from tensorflow) (44.1.1)\nCollecting tensorboard<2.10,>=2.9\n  Downloading tensorboard-2.9.0-py3-none-any.whl (5.8 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 5.8\/5.8 MB 1.2 MB\/s eta 0:00:00\nCollecting packaging\n  Downloading packaging-21.3-py3-none-any.whl (40 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 40.8\/40.8 kB 93.1 kB\/s eta 0:00:00\nCollecting h5py>=2.9.0\n  Downloading h5py-3.7.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.5 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 4.5\/4.5 MB 1.2 MB\/s eta 0:00:00\nCollecting opt-einsum>=2.3.2\n  Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 65.5\/65.5 kB 107.3 kB\/s eta 0:00:00\nCollecting google-pasta>=0.1.1\n  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 57.5\/57.5 kB 105.3 kB\/s eta 0:00:00\nCollecting keras-preprocessing>=1.1.1\n  Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 42.6\/42.6 kB 89.3 kB\/s eta 0:00:00\nCollecting six>=1.12.0\n  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)\nCollecting typing-extensions>=3.6.6\n  Downloading typing_extensions-4.2.0-py3-none-any.whl (24 kB)\nCollecting grpcio<2.0,>=1.24.3\n  Downloading grpcio-1.46.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 4.4\/4.4 MB 996.9 kB\/s eta 0:00:00\nCollecting libclang>=13.0.0\n  Downloading libclang-14.0.1-py2.py3-none-manylinux1_x86_64.whl (14.5 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 14.5\/14.5 MB 745.7 kB\/s eta 0:00:00\nCollecting termcolor>=1.1.0\n  Downloading termcolor-1.1.0.tar.gz (3.9 kB)\n  Preparing metadata (setup.py) ... done\nCollecting protobuf<3.20,>=3.9.2\n  Downloading protobuf-3.19.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 1.1\/1.1 MB 927.4 kB\/s eta 0:00:00\nCollecting wrapt>=1.11.0\n  Downloading wrapt-1.14.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (77 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 77.8\/77.8 kB 266.2 kB\/s eta 0:00:00\nCollecting flatbuffers<2,>=1.12\n  Downloading flatbuffers-1.12-py2.py3-none-any.whl (15 kB)\nCollecting tensorflow-estimator<2.10.0,>=2.9.0rc0\n  Downloading tensorflow_estimator-2.9.0-py2.py3-none-any.whl (438 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 438.7\/438.7 kB 890.4 kB\/s eta 0:00:00\nCollecting wheel<1.0,>=0.23.0\n  Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)\nCollecting requests<3,>=2.21.0\n  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 63.1\/63.1 kB 261.8 kB\/s eta 0:00:00\nCollecting markdown>=2.6.8\n  Downloading Markdown-3.3.7-py3-none-any.whl (97 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 97.8\/97.8 kB 373.1 kB\/s eta 0:00:00\nCollecting google-auth-oauthlib<0.5,>=0.4.1\n  Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)\nCollecting tensorboard-plugin-wit>=1.6.0\n  Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 781.3\/781.3 kB 744.6 kB\/s eta 0:00:00\nCollecting tensorboard-data-server<0.7.0,>=0.6.0\n  Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 4.9\/4.9 MB 1.1 MB\/s eta 0:00:00\nCollecting google-auth<3,>=1.6.3\n  Downloading google_auth-2.6.6-py2.py3-none-any.whl (156 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 156.7\/156.7 kB 539.6 kB\/s eta 0:00:00\nCollecting werkzeug>=1.0.1\n  Downloading Werkzeug-2.1.2-py3-none-any.whl (224 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 224.9\/224.9 kB 557.3 kB\/s eta 0:00:00\nCollecting pyparsing!=3.0.5,>=2.0.2\n  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 98.3\/98.3 kB 340.2 kB\/s eta 0:00:00\nCollecting pyasn1-modules>=0.2.1\n  Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 155.3\/155.3 kB 260.4 kB\/s eta 0:00:00\nCollecting cachetools<6.0,>=2.0.0\n  Downloading cachetools-5.1.0-py3-none-any.whl (9.2 kB)\nCollecting rsa<5,>=3.1.4\n  Downloading rsa-4.8-py3-none-any.whl (39 kB)\nCollecting requests-oauthlib>=0.7.0\n  Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)\nCollecting importlib-metadata>=4.4\n  Downloading importlib_metadata-4.11.4-py3-none-any.whl (18 kB)\nCollecting idna<4,>=2.5\n  Downloading idna-3.3-py3-none-any.whl (61 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 61.2\/61.2 kB 277.3 kB\/s eta 0:00:00\nCollecting charset-normalizer~=2.0.0\n  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)\nCollecting urllib3<1.27,>=1.21.1\n  Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 139.0\/139.0 kB 456.4 kB\/s eta 0:00:00\nCollecting certifi>=2017.4.17\n  Downloading certifi-2022.5.18.1-py3-none-any.whl (155 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 155.2\/155.2 kB 553.1 kB\/s eta 0:00:00\nCollecting zipp>=0.5\n  Downloading zipp-3.8.0-py3-none-any.whl (5.4 kB)\nCollecting pyasn1<0.5.0,>=0.4.6\n  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 77.1\/77.1 kB 282.8 kB\/s eta 0:00:00\nCollecting oauthlib>=3.0.0\n  Downloading oauthlib-3.2.0-py3-none-any.whl (151 kB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 151.5\/151.5 kB 587.1 kB\/s eta 0:00:00\nUsing legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.\nInstalling collected packages: termcolor, tensorboard-plugin-wit, pyasn1, libclang, keras, flatbuffers, zipp, wrapt, wheel, werkzeug, urllib3, typing-extensions, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, six, rsa, pyparsing, pyasn1-modules, protobuf, oauthlib, numpy, idna, gast, charset-normalizer, certifi, cachetools, requests, packaging, opt-einsum, keras-preprocessing, importlib-metadata, h5py, grpcio, google-pasta, google-auth, astunparse, absl-py, requests-oauthlib, markdown, google-auth-oauthlib, tensorboard, tensorflow\n  Running setup.py install for termcolor ... done\nSuccessfully installed absl-py-1.0.0 astunparse-1.6.3 cachetools-5.1.0 certifi-2022.5.18.1 charset-normalizer-2.0.12 flatbuffers-1.12 gast-0.4.0 google-auth-2.6.6 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.46.3 h5py-3.7.0 idna-3.3 importlib-metadata-4.11.4 keras-2.9.0 keras-preprocessing-1.1.2 libclang-14.0.1 markdown-3.3.7 numpy-1.22.4 oauthlib-3.2.0 opt-einsum-3.3.0 packaging-21.3 protobuf-3.19.4 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyparsing-3.0.9 requests-2.27.1 requests-oauthlib-1.3.1 rsa-4.8 six-1.16.0 tensorboard-2.9.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.9.1 tensorflow-estimator-2.9.0 tensorflow-io-gcs-filesystem-0.26.0 termcolor-1.1.0 typing-extensions-4.2.0 urllib3-1.26.9 werkzeug-2.1.2 wheel-0.37.1 wrapt-1.14.1 zipp-3.8.0\n<\/code><\/pre>\n\n\n\n<p>Check installed version of TensorFlow;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -c 'import tensorflow as tf;print(tf.version.VERSION)'<\/code><\/pre>\n\n\n\n<p>Sample output;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2.9.1<\/code><\/pre>\n\n\n\n<p>You can now use TensorFlow. Refer to the <a href=\"https:\/\/www.tensorflow.org\/learn\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a> for more information.<\/p>\n\n\n\n<p>You can deactivate the virtual environment using the command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deactivate<\/code><\/pre>\n\n\n\n<p>You should see the shell prompt change.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-java-11-java-17-java-18-on-ubuntu\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Java 11|Java 17|Java 18 on Ubuntu 22.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-yarn-on-debian-11\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Yarn on Debian 11<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to install TensorFlow on Debian 11. According to their site, TensorFlow is an end-to-end open source platform for machine<\/p>\n","protected":false},"author":1,"featured_media":12913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[3958,5232,5231,5228],"class_list":["post-12915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-debian-11","tag-install-tensorflow-on-debian-11","tag-tensorflow","tag-tensorflow-install-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12915"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=12915"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12915\/revisions"}],"predecessor-version":[{"id":20497,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12915\/revisions\/20497"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/12913"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=12915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=12915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=12915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}