繁体   English   中英

如何卸载Tensorflow 2.0.0-alpha0?

[英]How can I uninstall Tensorflow 2.0.0-alpha0?

我正在使用崇高的文本编辑器来使用pythin 3.7运行tensorflow命令。 特别是我正在尝试运行: tf.enable_eager_execution()但出现错误: AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution'我已经使用以下方法检查了我的Tensorflow版本: print(tf.__version__) ,版本为: 2.0.0-alpha0

奇怪的是,我已经使用pip3 uninstall tensorflow完全pip3 uninstall tensorflow而我仍在运行该版本。

通过阅读,我相信我无法运行tf.enable_eager_execution()因为我的tensorflow版本,这就是为什么我尝试将其卸载。 Ive还尝试使用tensorflow.contrib.eager显式调用它,但还是没有运气。

TensorFlow 2.0 默认情况下渴望执行 要禁用急切执行,请使用

tf.compat.v1.disable_eager_execution()

暂无
暂无

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

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