Comments (6)
From Jupyter, try:
!pip install keras
Also, are you using Python 3.7? If so, TensorFlow will fail, as it requires Python 3.6. See the updated instructions on module 1 here in GitHub. I updated that just a few days ago.
from t81_558_deep_learning.
I followed the updated module. Created an environment for 3.6 first and then configured everything. The first time it ran well. As soon as I added a print statement, it started giving me these two module errors.
I ran !pip install keras on jupyter, it gave me the following result:
Double requirement given: keras (already in keras==2.2.4, name='keras')
from t81_558_deep_learning.
Not sure, this might be a better support question for the TensorFlow guys. This is not a problem I've really run into.
I will give you one last thing to try. It is possible to import/export environments. I am going to try this for next semester, because it might be an easier install path. I've exported my environments, after I completed a successful install. You can try importing my environment.
You can find my exports here:
https://github.com/jeffheaton/t81_558_deep_learning/tree/master/env-exports
I am curious if this would solve the problem for you. Another thing to test on your current environment is simply to go to the terminal and type "python" and then simply "import keras" and see if it is able to find it from Python alone (no Jupyter).
from t81_558_deep_learning.
I am trying to import your environment now.
I ran python in terminal, it gave me python's version number. I ran import keras and it gave me the same error.
python
Python 3.7.1 (default, Dec 14 2018, 13:28:58)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
import keras
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'keras'
from t81_558_deep_learning.
Ran the import file command. Got this error.
conda env create -f wustl-mac.yml
Solving environment: failed
ResolvePackageNotFound:
- qt==5.9.7=h468cd18_0
I guess I should uninstall everything and reinstall and re-clone things. Will that make any difference? I have been trying to resolve this since last 4 days and I am unable to come up to anything yet.
from t81_558_deep_learning.
I uninstalled everything. Installed things back. It's working perfectly fine now! I am now able to add my custom code as well and it's working smooth.
Thanks for your support!
from t81_558_deep_learning.
Related Issues (20)
- Win 11 install HOT 1
- remove 'env' from 'conda env create...' in installation guide HOT 1
- A small mistake in 03_2_keras HOT 1
- Keras needs to be replaced with PyTorch in 3_3 HOT 1
- Running Early Stopping with Classification on an M1 Max early stop is not triggered HOT 2
- Running instalation step by step HOT 3
- t81_558_class_07_2_train_gan source file HOT 1
- Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected HOT 2
- Error: update_endpoint is a no-op in sagemaker>=2. See: https://sagemaker.readthedocs.io/en/stable/v2.html for details. HOT 1
- Trying to install conda environment from yml file fails. Manual installation works fine HOT 1
- Runtime error with import keras in notebook 6.2 HOT 1
- Random AssertionErrors & Output stops working HOT 2
- Error when fit model executes HOT 2
- regarding pytorch branch folder install file torch.yml (not sure if it is an issue) HOT 1
- CuDNN version conflict after following WSL install instructions HOT 1
- typo in module 2, part 2.5 HOT 1
- keras version info error
- GPU Accelaretaing for non-NVIDIA GPU devices
- t81_558_class_07_2_train_gan.ipynb - Can't install tensorflow 1.8 anymore HOT 1
- tensorflow > 2.14 no longer supports tf.keras.__version__, causes error in notebook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t81_558_deep_learning.