Reputation: 4208
I have old code using keras
instead of tf.keras
. I am running on my conda environment with tensorflow 2 and python 3.8 installed. I installed keras using conda install -c conda-forge keras
and installed pandas using conda install pandas
. Then when I ran the below code in spyder, I got errors of no module named pandas
and no module named 'keras'
. Where did I do wrong? Thanks for helping.
https://anaconda.org/conda-forge/keras
import pandas as pd
from keras.models import Sequential,Model
Upvotes: 0
Views: 364
Reputation: 4802
You want to make sure you are using the Anaconda version of python. At the command line type which python
and verify you are using the Anaconda version.
Upvotes: 1