安装pythonsudo pacman -S python
sudo pacman -S python-pip
安装tensorflowsudo pacman -S python-tensorflow-cuda
sudo pacman -S python-pillow
如果出现Header和Library不符的情况,可以重装h5pysudo pip uninstall h5py
sudo pip install h5py
进入python环境>> import tensorflow as tf
>> tf.__version__
'1.11.0' #说明安装成功