Quantcast
Channel: Tensorboard using Python 2.7, how to change it to Python 3? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4

Tensorboard using Python 2.7, how to change it to Python 3?

$
0
0

So I program a tensorflow program in python3, and can execute said scripts with python3, with the modules that I installed using pip3. But when using

tensorboard --logdir="./graphs" --port 6006

It is using Python2.7, and numpy is not installed, since I am not using Python 2. When installing numpy with pip (instead of pip3) it still does not work because AttributeErrors.

How can i tell tensorboard (and other programs) to use python3 with the pip3 modules, instead of python2.7?

Using python3 tensorboard --logdir="./graphs" --port 6006 does not work, since python3 expects me to give it a script file.

Additional Information:The tensorboard graph file has been created in the given path, from this code

import osimport tensorflow as tfimport numpy as npos.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'tf.reset_default_graph()a = tf.constant(2)b = tf.constant(3)c = tf.add(a, b)with tf.Session() as sess:    writer = tf.summary.FileWriter('./graphs', sess.graph)    print(sess.run(c))

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images