Git Product home page Git Product logo

Comments (4)

hellosaumil avatar hellosaumil commented on June 22, 2024 4

mikepugh I also ran into this error. I followed docker installation for Mac with cntk:2.2-cpu-python2.7, but when I run import cntk I get the following errors.

Err 1 : ImportError: No module named 'cntk._cntk_py'

Err 2 : ImportError: libnvidia-Machine Learning.so.1: cannot open shared object file: No such file or directory

Issue should be Re-Opened!!!

from cntk-docker.

alexeyo26 avatar alexeyo26 commented on June 22, 2024 1

With docker pull microsoft/cntk you get GPU version of CNTK. If this is what you want to do, then you need to use nvidia-docker to create container. I.e.

nvidia-docker run -d -p 8888:8888 --name cntk-jupyter-notebooks -t Microsoft/CNTK

After this everything should work.

If you do NOT want a GPU version, then pull another tag. See https://hub.docker.com/r/microsoft/cntk/ for the tag information.

Hope it helps,
Alexey.

from cntk-docker.

mikepugh avatar mikepugh commented on June 22, 2024 1

I've run into the originally posted import cntk error on the latest cntk:2.2-cpu-python3.5 docker image. I tested just now with both the 2.1 and 2.0 versions and they work as expected.

from cntk-docker.

alankyshum avatar alankyshum commented on June 22, 2024

Big thanks to @alexeyo26
For future reference, the correct steps for running CPU version should be taken are:

  1. docker pull microsoft/cntk:2.0-cpu-python3.5
  2. docker run -d -p 8888:8888 --name cntk-jupyter-notebooks -t microsoft/cntk:2.0-cpu-python3.5
  3. docker exec -it cntk-jupyter-notebooks bash -c "source /cntk/activate-cntk && jupyter-notebook --no-browser --port=8888 --ip=0.0.0.0 --notebook-dir=/cntk/Tutorials --allow-root"

from cntk-docker.

Related Issues (5)

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.