1. 程式人生 > >[AI][tensorflow][keras] archlinux下 tersorflow and keras 安裝

[AI][tensorflow][keras] archlinux下 tersorflow and keras 安裝

 

 

tensorflow

TensorFlow is an open-source machine learning library for research and production.

https://en.wikipedia.org/wiki/TensorFlow

https://www.tensorflow.org/

Tutorial: https://www.tensorflow.org/tutorials/

 

Keras:

Keras is a high-level API to build and train deep learning models. It'
s used for fast prototyping, advanced research, and production

 

Tensorflow安裝:https://www.tensorflow.org/install/

pacman裡邊有包,有兩個,tensorflow和python-tensorflow,

裝了python-tensorflow

 

keras安裝: 用pip

┬─[[email protected]:~]─[08:12:16 PM]
╰─>$ pip install keras

 

測試:

┬─[
[email protected]
:~]─[08:33:00 PM] ╰─>$ python Python 3.7.1 (default, Oct 22 2018, 10:41:28) [GCC 8.2.1 20180831] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf >>> from tensorflow.keras import layers >>> print(tf.VERSION)
1.12.0 >>> print(tf.keras.__version__) 2.1.6-tf >>>