Skip to content

Instantly share code, notes, and snippets.

@anmolj7
Created December 8, 2019 13:16
Show Gist options
  • Save anmolj7/e80184abe5d762683eca49b3363da748 to your computer and use it in GitHub Desktop.
Save anmolj7/e80184abe5d762683eca49b3363da748 to your computer and use it in GitHub Desktop.
Ansible playbook to install tensorflow on fedora systems.
---
- hosts: localhost
become: yes
name: play_1
tasks:
- name: Installing Python3.6
dnf: name=python3.6 state=latest
- name: Downloading get-pip.py
shell: wget https://bootstrap.pypa.io/get-pip.py
- name: Installing pip for python3.6
shell: sudo python3.6 get-pip.py
- name: Removing get-pip.py
shell: rm get-pip.py
- name: Installing Tensorflow
shell: sudo python3.6 -m pip install tensorflow
@anmolj7
Copy link
Author

anmolj7 commented Dec 8, 2019

Installing python3.6 as tensorflow isn't compatible with python3.7 as of now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment