大约一年前,我通过anaconda安装了tensorflow。现在我使用cmd中的以下行将tensorflow升级到tensorflow 2.0.0-beta1:
conda update --all
pip install --upgrade tensorflow==2.0.0-beta1
安装成功,带有最后的评论:
Successfully installed google-pasta-0.1.7 tb-nightly-1.14.0a20190603 tensorflow-2.0.0b1 tf-estimator-nightly-1.14.0.dev2019060501
但是当我导入tensorflow时出现此错误:
import tensorflow
AttributeError: module 'pandas' has no attribute 'core'
您可以尝试以下命令
conda upgrade --all
如果您使用的是jupyter笔记本,请重启书,然后尝试导入tensorflow
希望这会有所帮助。