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


May 11, 2019 at 2:18 AM

Hi,

Here is screen shot of installation process:

Thanks

Ads









Related Tutorials/Questions & Answers:
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
Where can I find a nice TensorFlow tutorial?
Where can I find a nice TensorFlow tutorial?  Hi, I am beginner in TensorFlow and trying to find nice tutorials of TensorFlow. Where can I find a nice TensorFlow tutorial? Thanks
Advertisements
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
Installing TensorFlow on windows with Anaconda
an environment named "tensorflow": conda create -n tensorflow python=3.5... Now you can either install CPU or GPU based TensorFlow. In this tutorial I am...Steps of Installing TensorFlow on windows with Anaconda In this tutorial we
I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined - Spring
I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined  Hello, I am getting error
ImportError: No module named scipy.ndimage - Solved
ImportError: No module named scipy.ndimage - Solved  Hi, How to solve following error: ImportError: No module named scipy.ndimage This error..., in <module> import scipy.ndimage as ndi ImportError: No module named
import org.hibernate.Session error
import org.hibernate.Session error  I am new to hibernate. I have... imports. what i need to do?   Hi, Are you using Eclipse? Please let's know what steps you are following. I will try to help you. Thanks   
when sending the mail from java I am getting the below error - JavaMail
when sending the mail from java I am getting the below error   when sending the mail from java I am getting the below error : Exception...: SendMail.java import java.util.*; import javax.mail.*; import javax.mail.internet.
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi! Thank you. That error has gone and i have worked out an example, but its giving a null pointer exception...-to-the-mail(import-files-error).html Thanks
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi Its already there in the bin. If its class path should be set , how can i do dat?   Hi, Wait for 20 minutes. I will send you link to download new project file. You should
How to create variable in TensorFlow?
in TensorFlow: import tensorflow as tf a = tf.Variable(4,) sess = tf.Session... are just printing its data. Here is output: >>> import tensorflow...How to create variable in TensorFlow?  Hi, How to create variable
TensorFlow placeholder matrix
matrix with TensorFlow? I am searching for TensorFlow placeholder matrix... matrix example import tensorflow as tf x = tf.placeholder("float", [None, 3]) y... information. >>> >>> import tensorflow as tf >>> >
getting an error when set classpath
getting an error when set classpath  Hello Everyone! i have used hssf model for reading excel sheet in my project & i have set classpath for that jar file but when i compile the program it will compile correctly but when i
Variables in TensorFlow
are converting numpy data to a TensorFlow Tensor: import tensorflow as tf...; import tensorflow as tf >>> import numpy as np >>> data...: import tensorflow as tf a = tf.Variable(4,) v = tf.Variable(2,) b
How do I import a CSV file in R?
How do I import a CSV file in R?  Hi, I have a CSV file with 900000 records and I want to load it for analytics. How do I import a CSV file in R? Thanks   Hi, R Programming language is very powerful programming
Hello World Program in TensorFlow
in TensorFlow which prints "Say Hello to TensorFlow!", when executed. Here is the example program: #TensorFlow Hello World example #import tensorflow libraries import tensorflow as tf #create constant msg = tf.constant
why i'm getting this error?The import javax.servlet.http cannot be resolved
why i'm getting this error?The import javax.servlet.http cannot be resolved  hey buddy's i had one problem in servlet in jsp program. Exactly i'm...-quick-tip-resolving-error-the-import-javaxservlet-cannot-be-resolved/ ** any
I GOT ERROR FOR MY PROJECT
I GOT ERROR FOR MY PROJECT  Dear Friend/ RoseIndia Team, Firstly I would to thank u Guys help me so many time.. I got error on my little project when running at server. please correctly my error Guys... ERROR CODE: "LOGIN
Error: Cannot find module 'jasmine-core'
Error: Cannot find module 'jasmine-core'  Hi, I am trying to make a testing application using jasmine and karma framework. When I run the command: karma start Its throwing following error: Error: Cannot find module 'jasmine
Best TensorFlow Tutorial
Best TensorFlow Tutorial  I want to learn TensorFlow. Where to learn it? Which is the best website to learn TensorFlow? Thanks   Hello, TensorFlow is deep learning neural network concept based machine learning
When i click on Monitor Tomcat, it shows
When i click on Monitor Tomcat, it shows   To run servlet i have seen... installed java 7 and tomcat 7, when i click on Monitor Tomcat it shows...' and when i Open your Browser (Google Chrome) and type the following URL : http
When i click on Monitor Tomcat, it shows
When i click on Monitor Tomcat, it shows   To run servlet i have seen... installed java 7 and tomcat 7, when i click on Monitor Tomcat it shows...' and when i Open your Browser (Google Chrome) and type the following URL : http
Version of com.confluex>mule-module-error dependency
List of Version of com.confluex>mule-module-error dependency
Installing TensorFlow on Windows 10
: import tensorflow as tf # Initialize two constants x1 = tf.constant([1,2...Steps of Installing TensorFlow on Windows 10 TensorFlow programming language runs on 64 bit of Windows operating system and in this tutorial I will teach
Which are some good tutorials on TensorFlow?
Which are some good tutorials on TensorFlow?  Hi, I am science graduate and know Java programming language. Now I want to learn TensorFlow programming language. How to go about it and learn TensorFlow in less time. I am
What is the best source to learn TensorFlow?
What is the best source to learn TensorFlow?  Hi, I am from .NET field and want to learn TensorFlow. What is the best source to learn TensorFlow? Thanks   Hi, Don't worry .NET programmers can also learn TensorFlow
How to fix HAX Kernel Module Is Not Installed error?
How to fix HAX Kernel Module Is Not Installed error?  Hi, How to fix HAX Kernel Module Is Not Installed error? Android studio gives following error: emulator: ERROR: x86 emulation currently requires hardware acceleration
What is the best TensorFlow tutorial or course?
What is the best TensorFlow tutorial or course?  Hi, I am finding difficult to learn TensorFlow myself from online tutorials. Is there any good step by step tutorials of TensorFlow? What is the best TensorFlow tutorial
error in program when trying to load image in java - Java Beginners
error in program when trying to load image in java  Hi, I'm trying to add an image to my GUI using java graphics. I have cleaned up all my compiler... that error message above saying uncaught error fetching image. I don't know how
Creating a File I/O using import scanner, io.* and text.*
Creating a File I/O using import scanner, io.* and text.*  open a file for reading and open another file for writing data. input file hours-int, hourly rate-double, name-string. output file name-string, hours-int, hourly rate
Page is not getting loaded when I refresh the webpage???
Page is not getting loaded when I refresh the webpage???  **I am... when I refresh the page.* Note: Header section is getting loaded always Could... function in JSP. It will get all details of image section from database. *I am

Ads