安装仅支持CPU版本的TensorFlow,使用python安装,安装步骤如下:
//从官方源安装2.6.0
pip3 install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.6.0-cp38-cp38-manylinux2010_x86_64.whl
//测试出现protobuf版本问题,TF版本较低,进行版本回退
pip install --upgrade protobuf==3.20
//安装测试
python3 -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"