Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (17.6k points)

import tensorflow.contrib.learn.python.learn as learn

home/michael/miniconda3/lib/python3.6/importlib/_bootstrap.py:219:

RuntimeWarning: compiletime version 3.5 of module  

'tensorflow.python.framework.fast_tensor_util' does not match runtime 

version 3.6

return f(*args, **kwds)

---------------------------------------------------------------------------

AttributeError                            Traceback (most recent call last)

<ipython-input-1-630a74eb6a34> in <module>()

----> 1 import tensorflow.contrib.learn.python.learn as learn

AttributeError: module 'tensorflow.contrib.learn' has no attribute 'python'

I am trying to import this library in jupyter in linux environment, and I could not find any answer on google.

1 Answer

0 votes
by (41.4k points)

Here, you just import it directly:

import tensorflow.contrib.learn as learn

or

from tensorflow.contrib import learn

To Learn what is data science and how to be a data scientist visit the Data Scientist Course by Intellipaat.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers

500 comments

108k users

Browse Categories

...