python3 --version pip3 --version virtualenv --version Install the pip package manager, and Virtualenv: sudo apt update sudo apt install python3-pip When prompted, click Y to continue. sudo pip3 install -U virtualenv # system-wide install Go back and confirm the pip package manager and Virtualenv is installed: pip3 --version virtualenv --version pip install --upgrade tensorflow python -c "import warnings;warnings.simplefilter(action="proxy.php?url=https%3A%2F%2Fgithub.com%2Fignore", category=FutureWarning);import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))" import warnings warnings.simplefilter(action="proxy.php?url=https%3A%2F%2Fgithub.com%2Fignore", category=FutureWarning) import tensorflow as tf import numpy as np from tensorflow import keras from tensorflow.python.util import deprecation deprecation._PRINT_DEPRECATION_WARNINGS = False model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])]) model.compile(optimizer='sgd', loss='mean_squared_error') xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float) ys = np.array([-2.0, 1.0, 4.0, 7.0, 10.0, 13.0], dtype=float) model.fit(xs, ys, epochs=500)