Installing TensorFlow on Fedora 29

  1. Pip is not installed on fedora 29 so pip needs to be installed by running the command:
sudo dnf install python3-pip
sudo pip3 install -U virtualenv
mkdir <name of project>
cd <name of project>
# Creates and changes the directory with any preffered name
sudo dnf install python36
virtualenv —system-site-packages -p python<supported version you want to use> ./venv
virtualenv —system-site-packages -p python3.6 ./venv
source ./venv/bin/activate
pip install tensorflow
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
python -c "import tensorflow as tf; import os; os.environ['TF_CPP_MIN_LOG_LEVEL'] = ‘2’; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
deactivate

--

--

I’m a Romanian🇷🇴 Computer Science student who likes programming and design. Here you can read about either my life experiences or different tutorials.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Marginean

Alex Marginean

I’m a Romanian🇷🇴 Computer Science student who likes programming and design. Here you can read about either my life experiences or different tutorials.