简体   繁体   中英

How can I uninstall Tensorflow 2.0.0-alpha0?

I am using sublime text editor to run tensorflow commands using pythin 3.7. In particular I am trying to run: tf.enable_eager_execution() but I get the error: AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution' I have checked my version of tensorflow using: print(tf.__version__) and the version is: 2.0.0-alpha0 .

What's odd is that I have uninstalled tensorflow completely using pip3 uninstall tensorflow and I still have that version running.

From reading around I believe I cant run tf.enable_eager_execution() because of my tensorflow version and thats why I am trying to uninstall it. Ive also tried to explicitly call it using tensorflow.contrib.eager but still no luck.

TensorFlow 2.0 has eager execution by default . To disable eager execution use

tf.compat.v1.disable_eager_execution()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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