简体   繁体   English

使用TensorFlow后端 导入张量流时出错

[英]Using TensorFlow backend. Error importing tensorflow

I've installed and imported tensorflow before ( https://github.com/ankur715/MOOCs/blob/master/pythonprogramming/ds_tf_keras_tutorial.ipynb ), but Anaconda on my Windows went haywire starting this week. 我之前已经安装并导入了tensorflow( https://github.com/ankur715/MOOCs/blob/master/pythonprogramming/ds_tf_keras_tutorial.ipynb ),但是Windows上的Anaconda于本周开始陷入困境。

It wasn't loading the Jupyter localhost after several tries/times, so I uninstalled it and reinstalled it. 在几次尝试/次之后,它没有加载Jupyter本地主机,因此我将其卸载并重新安装。 Then realized that Python 3.7 is what didn't allow tensorflow. 然后意识到Python 3.7是不允许tensorflow的东西。 I downgraded to Python 3.5, checked version of tensorflow which is 0.12.0. 我降级到Python 3.5,检查版本的tensorflow是0.12.0。

I think it wasn't working because of Python 3.7 earlier, and now tensorflow is 0.12.0. 我认为由于Python 3.7较早而无法正常工作,现在tensorflow为0.12.0。 How do I upgrade to tensowflow 1.12.0, to see if that'll solve it? 我如何升级到tensowflow 1.12.0,看能不能解决?

It is better to remove and install: 最好删除并安装:

conda uninstall tensorflow
conda install -c conda-forge tensorflow=1.12.0

Look here . 这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM