-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'tensorflow.contrib' #73
Comments
same issue |
I had the same issue. The code is specifically trying to use Tensorflow 1.6.0 which will only work on Pyhon3.6.
(I think you can also set up unique python3 envs using pypi envs but I've not tried) |
Hi @javid235 and @javid235 Step 1: Install Miniconda/Anaconda Step 2: Create a New Environment with Python 3.6 Step 3: Activate the New Environment Step 4: Install Dependencies Step 5: Run the Code Make sure you're using the correct paths in the commands above. Adjust them based on your actual project structure. |
It's because tensoflow.contrib does not exist anymore in tensorflow 2.0, and as bmccabe2 said, this code is written for tensorflow 1.6. Tensorflow 1.6 is not available anymore on python version > 3.6, this is why you need to use python 3.6. If you use a newer version, you'll install tensorflow >2.0, and then you'll get this error |
line 9, in
from rnn import rnn
line 9, in
from rnn_cell import LSTMAttentionCell
line 4, in
import tensorflow.contrib.distributions as tfd
ModuleNotFoundError: No module named 'tensorflow.contrib'
please help me with this problem.
The text was updated successfully, but these errors were encountered: