Skip to content

GPU docker image does not find keras #1070

@marketneutral

Description

@marketneutral

I have used the CPU docker image extensively and am trying to migrate to the GPU one. I am having an issue with just the basics.

  • I am running Ubuntu 20.04
  • Docker version 20.10.7

I try the following sequence

  • docker pull gcr.io/kaggle-gpu-images:v102
  • docker run -it --gpus all gcr.io/kaggle-gpu-images/python:v102 /bin/bash
  • nvidia-smi is fine... all looks good
  • ipython
  • import keras

this throws

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-88d96843a926> in <module>
----> 1 import keras

ModuleNotFoundError: No module named 'keras'

on the Kaggle site, this works fine with GPU enabled

image

I should note that I can import other libraries locally (e.g., import torch works fine).

Do you have an idea of what is happening to cause this issue?

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions