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

时间:2022-05-26 22:41:38

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

┬─[tong@T7:~]─[:: PM]
╰─>$ pip install keras

测试:

┬─[tong@T7:~]─[:: PM]
╰─>$ python
Python 3.7. (default, Oct , ::)
[GCC 8.2. ] 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.
>>> print(tf.keras.__version__)
2.1.-tf
>>>