我是macbook m1,anaconda配置的tf为2.8,python为3.7。运行就报这个错。
解决:
先删除原来的tf版本
sudo pip uninstall protobuf
sudo pip uninstall tensorflow
再用conda下载(关键)
conda install tensorflow
变成2.0版本,运行成功。
我是macbook m1,anaconda配置的tf为2.8,python为3.7。运行就报这个错。
解决:
先删除原来的tf版本
sudo pip uninstall protobuf
sudo pip uninstall tensorflow
再用conda下载(关键)
conda install tensorflow
变成2.0版本,运行成功。