Code Monkey home page Code Monkey logo

Comments (6)

jeffheaton avatar jeffheaton commented on May 19, 2024

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.

wal33d006 avatar wal33d006 commented on May 19, 2024

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.

jeffheaton avatar jeffheaton commented on May 19, 2024

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.

wal33d006 avatar wal33d006 commented on May 19, 2024

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.

wal33d006 avatar wal33d006 commented on May 19, 2024

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.

wal33d006 avatar wal33d006 commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.