Open Shoganwg opened 5 years ago
Did you try this?
pip uninstall tensorflow protobuf --yes
find $CONDA_PREFIX -name "tensorflow" | xargs -Ipkg rm -rfv pkg
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp36-cp36m-linux_x86_64.whl --no-cache-dir
Hello, during the practice, I get error of importing the tensorflow. Please find the error report below.
"Traceback (most recent call last): File "word2vec_basic.py", line 32, in
import tensorflow as tf
File "/usr/local/lib/python3.6/dist-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/init.py", line 88, in
from tensorflow.python import keras
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/init.py", line 24, in
from tensorflow.python.keras import activations
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/activations/init.py", line 22, in
from tensorflow.python.keras._impl.keras.activations import elu
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/_impl/keras/init.py", line 21, in
from tensorflow.python.keras._impl.keras import activations
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/_impl/keras/activations.py", line 23, in
from tensorflow.python.keras._impl.keras import backend as K
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/_impl/keras/backend.py", line 38, in
from tensorflow.python.layers import base as tf_base_layers
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/layers/base.py", line 25, in
from tensorflow.python.keras.engine import base_layer
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/init.py", line 23, in
from tensorflow.python.keras.engine.base_layer import InputSpec
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer.py", line 35, in
from tensorflow.python.keras import backend
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/backend/init.py", line 22, in
from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'