https://tensorflow.juejin.im/install/install_mac.html

在 macOS 中安装/卸载 TensorFlow

 

 

 

 

 

查看tensorflow版本

sudo pip show tensorflow

sudo pip3 show tensorflow

卸载:

sudo pip uninstall protobuf
sudo pip uninstall tensorflow




Check failed: PyBfloat16_Type.tp_base != nullptr

numpy>=1.14,so pip install numpy==1.14 and it work!