No module named 'absl' error when I import tensorflow

Ads
 

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:

[email protected]:~$ 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

Ads









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
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
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
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
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_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 '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 '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 '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 'bert-tensorflow'
ModuleNotFoundError: No module named 'bert-tensorflow'  Hi, My... named 'bert-tensorflow' How to remove the ModuleNotFoundError: No module named... named 'bert-tensorflow' error will be solved. Thanks
ModuleNotFoundError: No module named 'cxflow-tensorflow'
: No module named 'cxflow-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'cxflow-tensorflow'  Hi, My... named 'cxflow-tensorflow' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'dask-tensorflow'
ModuleNotFoundError: No module named 'dask-tensorflow'  Hi, My... named 'dask-tensorflow' How to remove the ModuleNotFoundError: No module named... named 'dask-tensorflow' error will be solved. Thanks
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 '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 'gmlsnets-tensorflow'
: No module named 'gmlsnets-tensorflow' error? Thanks   Hi..., ModuleNotFoundError: No module named 'gmlsnets-tensorflow' error...ModuleNotFoundError: No module named 'gmlsnets-tensorflow'  Hi, My
ModuleNotFoundError: No module named 'intel-tensorflow'
: No module named 'intel-tensorflow' error will be solved. Thanks...ModuleNotFoundError: No module named 'intel-tensorflow'  Hi, My... named 'intel-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

Ads