在anancoda中新建了一个环境,然后安装了tensorflow1.14.0
但在notebook里,显示的却是2.1版本的
import tensorflow as tf
data1 = tf.constant(2.5)
data2 = tf.constant(3.5)
# from tensorflow.contrib.layers import layers
# regularizer = ((tf.nn.l2_loss(a) * 2) ** 0.5) * 0.5 * 0.0005
# regularizer = layers.l2_regularizer(0.0005)
print(tf.__version__)
输出是2.1.0,确认运行的是正确环境下的notebook,请问如何解决?