[PYTHON] Install the machine learning library TensorFlow on fedora23

Install the Python machine learning library TensorFlow on fedora23. What is TensorFlow?-Qiita

Things necessary

Python installation

http://tensorflow.org/get_started/os_setup.md

According to, Python2.7 is required at this time.

Since fedora23 contains only Python3 by default, install Python2 series.

Install python-devel at the same time as it is needed to build numpy.

sudo dnf install python python-devel

2 and 3 systems can coexist.

$ python --version
Python 2.7.10
$ python3 --version
Python 3.4.3

Add specs file

If you get the following error, you need rpm-build.

gcc:error: /usr/lib/rpm/redhat/redhat-hardened-cc1:There is no such file or directory

Install rpm-build.

sudo dnf install rpm-build

Reference: ["mysql_config --cflags" does not work on fedora 21 --Ask Fedora: Community Knowledge Base and Support Forum](https://ask.fedoraproject.org/en/question/61075/mysql_config-cflags-does-not -work-on-fedora-21 /)

This is called a specs file and seems to be a file that determines the behavior at build time. Reference: Cat Research Institute-What is GCC specs

Installation

Here, install the version that uses only the CPU for calculation.

$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

If you want to use GPU, you need CUDA SDK.

Operation check

$ python
Python 2.7.10 (default, Sep  8 2015, 17:20:17) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 1
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 1
>>> print sess.run(hello)
Hello, TensorFlow!

Recommended Posts

Install the machine learning library TensorFlow on fedora23
I installed the automatic machine learning library auto-sklearn on centos7
Install TensorFlow on Ubuntu
Install docker on Fedora31
Machine learning library dlib
Machine learning (TensorFlow) + Lotto 6
Machine learning library Shogun
Installation of TensorFlow, a machine learning library from Google
Pip the machine learning library from one end (Ubuntu)
Install the JDK on Linux
Watch the video on Fedora31
Install TensorFlow 1.15.0 on Raspberry Pi
Do not learn with machine learning library TensorFlow ~ Fibonacci sequence
Survey on the use of machine learning in real services
Install CUDA10.1 + cuDNN7.6.5 + tensorflow-2.3.0 on Ubuntu 18.04
Install anaconda on Mac → Add Library
How to install TensorFlow on CentOS 7
<For beginners> python library <For machine learning>
A story stuck with the installation of the machine learning library JAX
Notes on PyQ machine learning python grammar
TensorFlow Machine Learning Cookbook Chapter 2 Personally Clogged
Install python library on Lambda using [/ tmp]
Notes on running Azure Machine Learning locally
Machine learning
Machine learning with Pytorch on Google Colab
I tried to visualize the model with the low-code machine learning library "PyCaret"
[Machine learning] What is the LP norm?
TensorFlow Machine Learning Cookbook Chapter 3 Personally Clogged
Notify Slack when the machine learning process running on GCP is finished
Looking back on the machine learning competition that I worked on for the first time
Automatically stop the VM when the machine learning process running on GCP is finished
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
A story about simple machine learning using TensorFlow
TensorFlow Machine Learning Cookbook Chapter 6 (or rather, tic-tac-toe)
Upgrade the Azure Machine Learning SDK for Python
Python & Machine Learning Study Memo ②: Introduction of Library
Notes on machine learning (updated from time to time)
Install the latest Cuda + CuDNN on Ubuntu 18.04 @ Spring 2020
Looking back on learning with Azure Machine Learning Studio
About the development contents of machine learning (Example)
Build a machine learning environment using PyCharm on Ubuntu environment (TensorFlow will also be introduced!)
Fedora 33 beta install
Install tensorflow. (Only!)
Machine learning classification
Machine Learning sample
Notes on transactions in the Java client library in the datastore
Install the latest version of CMake on Ubuntu 18.04.4 LTS
Install psycopg2 (pgsql library for python3) on Apple Silicon
A quick introduction to the neural machine translation library
I installed and used the Deep Learning library Chainer
Steps to install the latest Python on your Mac
Build a machine learning Python environment on Mac OS
Impressions of taking the Udacity Machine Learning Engineer Nano-degree
About testing in the implementation of machine learning models
Predict the gender of Twitter users with machine learning
DNN (Deep Learning) Library: Comparison of chainer and TensorFlow (1)
Summary of the basic flow of machine learning with Python
Record of the first machine learning challenge with Keras
Install django on python + anaconda and start the server
I tried to compress the image using machine learning
Build a machine learning environment natively on Windows 10 (x64)