No module named 'absl' error when I import tensorflow

No module named 'absl' error when I import tensorflow

Hi,

In one of my TensorFlow project I am trying to import the absl but it is giving the errror:

No module named 'absl' error when I import tensorflow

Earlier it was working, but don't know why its not working after upgrading my Python.

How to resolve the error:

No module named 'absl' error when I import tensorflow

Thanks

View Answers

May 11, 2019 at 1:46 AM

Hi,

I am able to solve the issue by installing absl-py through pip. The error was coming because we have to use the basl-py in Python 3.

So run the following command:

pip3 install absl-py

or

pip install absl-py

After installing absl-py you will be able to use absl in your program.

Thanks


May 11, 2019 at 1:46 AM

Hi,

You will get following outputs:

deepak@deepak-VirtualBox:~$ pip install absl-py
Collecting absl-py
  Downloading https://files.pythonhosted.org/packages/da/3f/9b0355080b81b15ba6a9ffcf1f5ea39e307a2778b2f2dc8694724e8abd5b/absl-py-0.7.1.tar.gz (99kB)

Thanks









Related Tutorials/Questions & Answers:
No module named 'absl' error when I import tensorflow
the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow...No module named 'absl' error when I import tensorflow  Hi, In one
No module named 'absl' error when I import tensorflow
the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow...No module named 'absl' error when I import tensorflow  Hi, In one
Advertisements
No module named 'absl' error when I import tensorflow
the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow...No module named 'absl' error when I import tensorflow  Hi, In one
No module named 'absl' error when I import tensorflow
the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow...No module named 'absl' error when I import tensorflow  Hi, In one
No module named 'absl' error when I import tensorflow
the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow...No module named 'absl' error when I import tensorflow  Hi, In one
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one... the errror: No module named 'absl' error when I import tensorflowADS_TO_REPLACE_1... Python. How to resolve the error: No module named 'absl' error when I
ModuleNotFoundError: No module named 'absl'
is throwing following error: ModuleNotFoundError: No module named 'absl' How to remove the ModuleNotFoundError: No module named 'absl' error..., ModuleNotFoundError: No module named 'absl' error will be solved. Thanks
ModuleNotFoundError: No module named 'absl-py'
ModuleNotFoundError: No module named 'absl-py'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'absl..., ModuleNotFoundError: No module named 'absl-py' error will be solved
When should I learn tensorflow
When should I learn tensorflow  Hi, TensorFlow is now getting used in industry. I am planning to learn it. When should I learn tensorflow? Thanks... TensorFlow is being used in industry now so you should learn it asap. First of you
When should I learn tensorflow
When should I learn tensorflow  Hi, TensorFlow is now getting used in industry. I am planning to learn it. When should I learn tensorflow? Thanks... TensorFlow is being used in industry now so you should learn it asap. First of you
Jsp error when i run this a jsp file
Jsp error when i run this a jsp file  hi I got this error when i run the jsp file in IDE and outside also please help me java.lang.NullPointerException org.apache.jsp.insertjsp.jspInit(insert_jsp.java:22
when I run exiting project that time I got error, I want solution on it?
when I run exiting project that time I got error, I want solution on it?  Error occurred during deployment: Exception while loading the app...\nbproject\build-impl.xml:757: The module has not been deployed. See the server
ModuleNotFoundError: No module named 'tensorflow'
ModuleNotFoundError: No module named 'tensorflow'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'tensorflow' How to remove the ModuleNotFoundError: No module named '
TensorFlow 2.0 import keras
TensorFlow 2.0 import keras  Hi, How to correctly import keras... have installed TensorFlow 2.0 then you can import it in your project..., unicode_literals import tensorflow as tf from tensorflow.keras.layers import
TensorFlow 2.0 import keras
TensorFlow 2.0 import keras  Hi, How to correctly import keras... have installed TensorFlow 2.0 then you can import it in your project..., unicode_literals import tensorflow as tf from tensorflow.keras.layers import
TensorFlow 2.0 import keras
TensorFlow 2.0 import keras  Hi, How to correctly import keras... have installed TensorFlow 2.0 then you can import it in your project..., unicode_literals import tensorflow as tf from tensorflow.keras.layers import
ModuleNotFoundError: No module named 'tensorflow_hub'
ModuleNotFoundError: No module named 'tensorflow_hub'  Hi, While running a program its not finding module: ModuleNotFoundError: No module named...: No module named 'tensorflow_hub' How to resolve this? Thanks   Hi
ModuleNotFoundError: No module named 'albert-tensorflow'
: No module named 'albert-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'albert-tensorflow'  Hi, My... named 'albert-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'albert-tensorflow'
: No module named 'albert-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'albert-tensorflow'  Hi, My... named 'albert-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'emloop-tensorflow'
: No module named 'emloop-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'emloop-tensorflow'  Hi, My... named 'emloop-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'mesh-tensorflow'
ModuleNotFoundError: No module named 'mesh-tensorflow'  Hi, My... named 'mesh-tensorflow' How to remove the ModuleNotFoundError: No module named... named 'mesh-tensorflow' error will be solved. Thanks
ModuleNotFoundError: No module named 'mlops-tensorflow'
: No module named 'mlops-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'mlops-tensorflow'  Hi, My... named 'mlops-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'neuraxle-tensorflow'
: No module named 'neuraxle-tensorflow' error? Thanks   Hi..., ModuleNotFoundError: No module named 'neuraxle-tensorflow' error...ModuleNotFoundError: No module named 'neuraxle-tensorflow'  Hi, My
ModuleNotFoundError: No module named 'resnet-tensorflow'
: No module named 'resnet-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'resnet-tensorflow'  Hi, My... named 'resnet-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'sagemaker-tensorflow'
: No module named 'sagemaker-tensorflow' error? Thanks   Hi..., ModuleNotFoundError: No module named 'sagemaker-tensorflow' error...ModuleNotFoundError: No module named 'sagemaker-tensorflow'  Hi
ModuleNotFoundError: No module named 'silence-tensorflow'
, ModuleNotFoundError: No module named 'silence-tensorflow' error will be solved...ModuleNotFoundError: No module named 'silence-tensorflow'  Hi, My... named 'silence-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'spotify_tensorflow'
, ModuleNotFoundError: No module named 'spotify_tensorflow' error will be solved...ModuleNotFoundError: No module named 'spotify_tensorflow'  Hi, My... named 'spotify_tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'syft-tensorflow'
ModuleNotFoundError: No module named 'syft-tensorflow'  Hi, My... named 'syft-tensorflow' How to remove the ModuleNotFoundError: No module named... named 'syft-tensorflow' error will be solved. Thanks
ModuleNotFoundError: No module named 'syntaxnet-with-tensorflow'
: No module named 'syntaxnet-with-tensorflow' How to remove the ModuleNotFoundError: No module named 'syntaxnet-with-tensorflow' error? Thanks  ...ModuleNotFoundError: No module named 'syntaxnet-with-tensorflow'  Hi
ModuleNotFoundError: No module named 'Tensorflow-ChatBots'
: No module named 'Tensorflow-ChatBots' error? Thanks   Hi..., ModuleNotFoundError: No module named 'Tensorflow-ChatBots' error...ModuleNotFoundError: No module named 'Tensorflow-ChatBots'  Hi, My
ModuleNotFoundError: No module named 'tensorflow-cloud'
: No module named 'tensorflow-cloud' error will be solved. Thanks...ModuleNotFoundError: No module named 'tensorflow-cloud'  Hi, My... named 'tensorflow-cloud' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'tensorflow-compression'
: No module named 'tensorflow-compression' How to remove the ModuleNotFoundError: No module named 'tensorflow-compression' error? Thanks   Hi...ModuleNotFoundError: No module named 'tensorflow-compression'  Hi
ModuleNotFoundError: No module named 'tensorflow-core'
ModuleNotFoundError: No module named 'tensorflow-core'  Hi, My... named 'tensorflow-core' How to remove the ModuleNotFoundError: No module named... named 'tensorflow-core' error will be solved. Thanks
ModuleNotFoundError: No module named 'tensorflow-addons'
: No module named 'tensorflow-addons' error will be solved. Thanks...ModuleNotFoundError: No module named 'tensorflow-addons'  Hi, My... named 'tensorflow-addons' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'tensorflow-cpu'
ModuleNotFoundError: No module named 'tensorflow-cpu'  Hi, My... named 'tensorflow-cpu' How to remove the ModuleNotFoundError: No module named... the installation of tensorflow-cpu python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'tensorflow-base'
ModuleNotFoundError: No module named 'tensorflow-base'  Hi, My... named 'tensorflow-base' How to remove the ModuleNotFoundError: No module named... named 'tensorflow-base' error will be solved. Thanks
ModuleNotFoundError: No module named 'Tensorflow-ChatBots'
: No module named 'Tensorflow-ChatBots' error? Thanks   Hi..., ModuleNotFoundError: No module named 'Tensorflow-ChatBots' error...ModuleNotFoundError: No module named 'Tensorflow-ChatBots'  Hi, My
ModuleNotFoundError: No module named 'tensorflow-cloud'
: No module named 'tensorflow-cloud' error will be solved. Thanks...ModuleNotFoundError: No module named 'tensorflow-cloud'  Hi, My... named 'tensorflow-cloud' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'tensorflow-compression'
: No module named 'tensorflow-compression' How to remove the ModuleNotFoundError: No module named 'tensorflow-compression' error? Thanks   Hi...ModuleNotFoundError: No module named 'tensorflow-compression'  Hi
ModuleNotFoundError: No module named 'tensorflow-core'
ModuleNotFoundError: No module named 'tensorflow-core'  Hi, My... named 'tensorflow-core' How to remove the ModuleNotFoundError: No module named... named 'tensorflow-core' error will be solved. Thanks
ModuleNotFoundError: No module named 'tensorflow-cpu'
ModuleNotFoundError: No module named 'tensorflow-cpu'  Hi, My... named 'tensorflow-cpu' How to remove the ModuleNotFoundError: No module named... the installation of tensorflow-cpu python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'tensorflow-datasets'
: No module named 'tensorflow-datasets' error? Thanks   Hi..., ModuleNotFoundError: No module named 'tensorflow-datasets' error...ModuleNotFoundError: No module named 'tensorflow-datasets'  Hi, My
ModuleNotFoundError: No module named 'tensorflow-determinism'
: No module named 'tensorflow-determinism' How to remove the ModuleNotFoundError: No module named 'tensorflow-determinism' error? Thanks   Hi...ModuleNotFoundError: No module named 'tensorflow-determinism'  Hi
ModuleNotFoundError: No module named 'tensorflow-encrypted'
: No module named 'tensorflow-encrypted' error? Thanks   Hi..., ModuleNotFoundError: No module named 'tensorflow-encrypted' error...ModuleNotFoundError: No module named 'tensorflow-encrypted'  Hi
ModuleNotFoundError: No module named 'tensorflow-estimator'
: No module named 'tensorflow-estimator' error? Thanks   Hi..., ModuleNotFoundError: No module named 'tensorflow-estimator' error...ModuleNotFoundError: No module named 'tensorflow-estimator'  Hi
ModuleNotFoundError: No module named 'tensorflow-extenteten'
: No module named 'tensorflow-extenteten' error? Thanks   Hi... library, ModuleNotFoundError: No module named 'tensorflow-extenteten' error...ModuleNotFoundError: No module named 'tensorflow-extenteten'  Hi
ModuleNotFoundError: No module named 'tensorflow-federated'
: No module named 'tensorflow-federated' error? Thanks   Hi..., ModuleNotFoundError: No module named 'tensorflow-federated' error...ModuleNotFoundError: No module named 'tensorflow-federated'  Hi
ModuleNotFoundError: No module named 'TensorFlow_for_Mac'
, ModuleNotFoundError: No module named 'TensorFlow_for_Mac' error will be solved...ModuleNotFoundError: No module named 'TensorFlow_for_Mac'  Hi, My... named 'TensorFlow_for_Mac' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'tensorflow-gan'
ModuleNotFoundError: No module named 'tensorflow-gan'  Hi, My... named 'tensorflow-gan' How to remove the ModuleNotFoundError: No module named... the installation of tensorflow-gan python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'tensorflow-gcp'
ModuleNotFoundError: No module named 'tensorflow-gcp'  Hi, My... named 'tensorflow-gcp' How to remove the ModuleNotFoundError: No module named... the installation of tensorflow-gcp python library, ModuleNotFoundError: No module named

Ads