T
T
TriKrista2018-05-30 23:13:39
Python
TriKrista, 2018-05-30 23:13:39

Why is tensorflow not being imported?

When trying to import tensorflow, I get the following error:


>>> import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in
from tensorflow. python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 63, in
from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin
File "/usr/lib/python3.6/site-packages/tensorflow/python/framework/framework_lib.py", line 77, in
from tensorflow.python.framework.ops import Graph
File "/ usr/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 55, in
from tensorflow.python.platform import app
File "/usr/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 24, in
from tensorflow.python.platform import flags
File "/usr /lib/python3.6/site-packages/tensorflow/python/platform/flags.py", line 33, in
disclaim_key_flags() # pylint: disable=undefined-variable
NameError: name 'disclaim_key_flags' is not defined

This is in Arch Linux, Tensorflow is installed from the official repository.
How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marat Nagayev, 2018-06-01
@nagayev

Try updating the library:
pip3 install --upgrade tensorflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question