'there is no module named keras
I'm using anaconda3 and vscode
I am trying to import Sequential from tensorflow.keras.models but keras can't be found.
I installed tensorflow by pip
and also when I run it, an error like this comes out.
"Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found"
could it be because I am doing this on a laptop with no GPU?
I am new to tensorflow so I'm sorry if it makes no sense.
Solution 1:[1]
You can get past this error by doing os.add_dll_directory("C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.2/bin") before importing tensorflow. Gpu is not mandatory its upto you,You have either not installed CUDA correctly (and also cudnn) or you have installed the wrong version, for the TF binary you are trying to use. Install : pip install tensorflow-gpu==2.6 or 2.7 please try to re install and let us know.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | TFer |
