{
  "id": 69597,
  "title": "ModuleNotFoundError: No module named 'keras'",
  "url": "/competitions/digit-recognizer/discussion/69597",
  "author_name": "Liu Kai-Chen",
  "post_date": "2018-10-25T07:50:59.414000",
  "votes": 1,
  "comment_count": 9,
  "views": null,
  "content": "<p>I want to try Marvin B.'s Praktische Aufgabe 2: MNIST - Erkennen von Zahlen\n,But I don't know \"ModuleNotFoundError: No module named 'keras'\",why?\nPlease help me,What can I do? Thanks.</p>",
  "messages": [
    {
      "id": 805590,
      "postDate": "2020-04-12T20:27:06.913Z",
      "content": "<p>Try using this directly\nfrom tensorflow.keras.models import Sequential</p>",
      "rawMarkdown": "Try using this directly\nfrom tensorflow.keras.models import Sequential",
      "votes": 4
    },
    {
      "id": 577544,
      "postDate": "2019-07-16T19:06:25.320Z",
      "content": "<p>keras is must  but what is the solution for gluon</p>",
      "rawMarkdown": "keras is must  but what is the solution for gluon",
      "votes": 1
    },
    {
      "id": 410012,
      "postDate": "2018-10-25T07:50:59.413Z",
      "content": "<p>I want to try Marvin B.'s Praktische Aufgabe 2: MNIST - Erkennen von Zahlen\n,But I don't know \"ModuleNotFoundError: No module named 'keras'\",why?\nPlease help me,What can I do? Thanks.</p>",
      "rawMarkdown": "I want to try Marvin B.'s Praktische Aufgabe 2: MNIST - Erkennen von Zahlen\n,But I don't know \"ModuleNotFoundError: No module named 'keras'\",why?\nPlease help me,What can I do? Thanks.",
      "votes": 1
    },
    {
      "id": 1373607,
      "postDate": "2021-07-02T16:15:42.223Z",
      "content": "<p>Try \"pip install keras\" in Anaconda Prompt. After successfully installing keras, it will ask whether to install tensorflow. Enter \"y\". it will take care of the rest. <br>\nAfter that you can try<br>\nfrom keras.models import Sequential<br>\nfrom keras.layers import Dense</p>",
      "rawMarkdown": "Try \"pip install keras\" in Anaconda Prompt. After successfully installing keras, it will ask whether to install tensorflow. Enter \"y\". it will take care of the rest. \nAfter that you can try\nfrom keras.models import Sequential\nfrom keras.layers import Dense"
    },
    {
      "id": 574940,
      "postDate": "2019-07-14T18:33:41.647Z",
      "content": "<p>Keras is the must:) </p>",
      "rawMarkdown": "Keras is the must:) "
    },
    {
      "id": 573024,
      "postDate": "2019-07-11T17:13:30.360Z",
      "content": "<p>same module issue with gluon instead of keras</p>",
      "rawMarkdown": "same module issue with gluon instead of keras"
    },
    {
      "id": 410216,
      "postDate": "2018-10-25T15:57:02.247Z",
      "content": "<p>If you want to use Tensorflow as backend then first install Tensorflow and import module as \nfrom tensorflow.keras import 'something'\notherwise install keras directly.</p>",
      "rawMarkdown": "If you want to use Tensorflow as backend then first install Tensorflow and import module as \nfrom tensorflow.keras import 'something'\notherwise install keras directly.",
      "replies": [
        {
          "id": 417347,
          "postDate": "2018-11-08T06:12:32.277Z",
          "content": "<p>Thanks :)</p>",
          "rawMarkdown": "Thanks :)",
          "votes": 1
        }
      ]
    },
    {
      "id": 410035,
      "postDate": "2018-10-25T08:53:52.987Z",
      "content": "<p>You must install Keras.</p>\n\n<p>First install Tensorflow and then install Keras.</p>",
      "rawMarkdown": "You must install Keras.\n\nFirst install Tensorflow and then install Keras.",
      "replies": [
        {
          "id": 417348,
          "postDate": "2018-11-08T06:12:40.277Z",
          "content": "<p>Thanks :)</p>",
          "rawMarkdown": "Thanks :)"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 805590,
      "author_name": "abhishekdeshmukh",
      "author_url": "",
      "post_date": "2020-04-12T20:27:06.913000",
      "content": "<p>Try using this directly\nfrom tensorflow.keras.models import Sequential</p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 577544,
      "author_name": "shivasai",
      "author_url": "",
      "post_date": "2019-07-16T19:06:25.320000",
      "content": "<p>keras is must  but what is the solution for gluon</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1373607,
      "author_name": "Somasekhar",
      "author_url": "",
      "post_date": "2021-07-02T16:15:42.223000",
      "content": "<p>Try \"pip install keras\" in Anaconda Prompt. After successfully installing keras, it will ask whether to install tensorflow. Enter \"y\". it will take care of the rest. <br>\nAfter that you can try<br>\nfrom keras.models import Sequential<br>\nfrom keras.layers import Dense</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 574940,
      "author_name": "Anna Woloszyn",
      "author_url": "",
      "post_date": "2019-07-14T18:33:41.647000",
      "content": "<p>Keras is the must:) </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 573024,
      "author_name": "shivasai",
      "author_url": "",
      "post_date": "2019-07-11T17:13:30.360000",
      "content": "<p>same module issue with gluon instead of keras</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 410216,
      "author_name": "Tortoise",
      "author_url": "",
      "post_date": "2018-10-25T15:57:02.247000",
      "content": "<p>If you want to use Tensorflow as backend then first install Tensorflow and import module as \nfrom tensorflow.keras import 'something'\notherwise install keras directly.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 417347,
          "author_name": "Liu Kai-Chen",
          "author_url": "",
          "post_date": "2018-11-08T06:12:32.277000",
          "content": "<p>Thanks :)</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 410035,
      "author_name": "hypervision",
      "author_url": "",
      "post_date": "2018-10-25T08:53:52.987000",
      "content": "<p>You must install Keras.</p>\n\n<p>First install Tensorflow and then install Keras.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 417348,
          "author_name": "Liu Kai-Chen",
          "author_url": "",
          "post_date": "2018-11-08T06:12:40.277000",
          "content": "<p>Thanks :)</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "805590": "Try using this directly\nfrom tensorflow.keras.models import Sequential",
    "577544": "keras is must  but what is the solution for gluon",
    "410012": "I want to try Marvin B.'s Praktische Aufgabe 2: MNIST - Erkennen von Zahlen\n,But I don't know \"ModuleNotFoundError: No module named 'keras'\",why?\nPlease help me,What can I do? Thanks.",
    "1373607": "Try \"pip install keras\" in Anaconda Prompt. After successfully installing keras, it will ask whether to install tensorflow. Enter \"y\". it will take care of the rest. \nAfter that you can try\nfrom keras.models import Sequential\nfrom keras.layers import Dense",
    "574940": "Keras is the must:) ",
    "573024": "same module issue with gluon instead of keras",
    "410216": "If you want to use Tensorflow as backend then first install Tensorflow and import module as \nfrom tensorflow.keras import 'something'\notherwise install keras directly.",
    "410035": "You must install Keras.\n\nFirst install Tensorflow and then install Keras."
  }
}